forked from qt-creator/qt-creator
fakevim: fix endless loop in certain search&replace operations
Task-number: QTCREATORBUG-5697 Change-Id: I25e9ef4ef042efa2b4dd670f5177e5e170fbaaf9 Reviewed-on: http://codereview.qt.nokia.com/2562 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -3297,7 +3297,7 @@ bool FakeVimHandler::Private::handleExSubstituteCommand(const ExCommand &cmd)
|
||||
}
|
||||
}
|
||||
text = text.left(pos) + repl + text.mid(pos + matched.size());
|
||||
pos += matched.size();
|
||||
pos += repl.size();
|
||||
if (!global)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user