Commit 5cfae537 authored by Robert Loehning's avatar Robert Loehning
Browse files

Fakevim: Fixed handling of line endings on Windows.

parent e9e59da0
...@@ -3063,6 +3063,9 @@ bool FakeVimHandler::Private::handleExBangCommand(const QString &line) // :! ...@@ -3063,6 +3063,9 @@ bool FakeVimHandler::Private::handleExBangCommand(const QString &line) // :!
QProcess proc; QProcess proc;
proc.start(command); proc.start(command);
proc.waitForStarted(); proc.waitForStarted();
#ifdef Q_OS_WIN
text.replace(QLatin1String("\n"), QLatin1String("\r\n"));
proc.write(text.toUtf8()); proc.write(text.toUtf8());
proc.closeWriteChannel(); proc.closeWriteChannel();
proc.waitForFinished(); proc.waitForFinished();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment