forked from qt-creator/qt-creator
fakevim: fix cursor positioning after ]] etc.
Change-Id: Ia42fccff507fce1e999d4534656984b6ebf5180a Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user