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:
hjk
2011-08-03 13:14:19 +02:00
committed by hjk
parent 9f82bc25a4
commit d8fdd0acdc

View File

@@ -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;
}