Commit d8fdd0ac authored by hjk's avatar hjk Committed by hjk
Browse files

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: default avatarhjk <qthjk@ovi.com>
parent 9f82bc25
......@@ -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;
}
......
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