fakevim: fix cursor positioning after ]] etc.

Change-Id: Ia42fccff507fce1e999d4534656984b6ebf5180a
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-11-17 01:10:53 +01:00
parent 5f8b341838
commit 289a05a189

View File

@@ -3856,6 +3856,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();