forked from qt-creator/qt-creator
Fakevim: Using existing object
This commit is contained in:
@@ -3038,7 +3038,7 @@ bool FakeVimHandler::Private::handleExBangCommand(const QString &line) // :!
|
|||||||
QString command = cmd.mid(1).trimmed();
|
QString command = cmd.mid(1).trimmed();
|
||||||
QString text = selectedText();
|
QString text = selectedText();
|
||||||
QProcess proc;
|
QProcess proc;
|
||||||
proc.start(cmd.mid(1));
|
proc.start(command);
|
||||||
proc.waitForStarted();
|
proc.waitForStarted();
|
||||||
proc.write(text.toUtf8());
|
proc.write(text.toUtf8());
|
||||||
proc.closeWriteChannel();
|
proc.closeWriteChannel();
|
||||||
|
|||||||
Reference in New Issue
Block a user