Fakevim: Fixed handling of line endings on Windows.

This commit is contained in:
Robert Loehning
2010-05-04 22:27:13 +02:00
parent e9e59da0dc
commit 5cfae53794

View File

@@ -3063,6 +3063,9 @@ bool FakeVimHandler::Private::handleExBangCommand(const QString &line) // :!
QProcess proc;
proc.start(command);
proc.waitForStarted();
#ifdef Q_OS_WIN
text.replace(QLatin1String("\n"), QLatin1String("\r\n"));
#endif
proc.write(text.toUtf8());
proc.closeWriteChannel();
proc.waitForFinished();