Commit 58955980 authored by hjk's avatar hjk Committed by Eike Ziller

fakevim: fix cursor positioning after ]] etc.

Change-Id: Ia42fccff507fce1e999d4534656984b6ebf5180a
Reviewed-by: default avatarhjk <qthjk@ovi.com>
(cherry picked from commit 289a05a1)
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent a791ee41
......@@ -3827,6 +3827,7 @@ void FakeVimHandler::Private::searchBalanced(bool forward, QChar needle, QChar o
// Making this unconditional feels better, but is not "vim like".
if (oldLine != cursorLine() - cursorLineOnScreen())
scrollToLine(cursorLine() - linesOnScreen() / 2);
setPosition(pos);
setTargetColumn();
updateSelection();
recordJump();
......
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