Commit 289a05a1 authored by hjk's avatar hjk

fakevim: fix cursor positioning after ]] etc.

Change-Id: Ia42fccff507fce1e999d4534656984b6ebf5180a
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 5f8b3418
...@@ -3856,6 +3856,7 @@ void FakeVimHandler::Private::searchBalanced(bool forward, QChar needle, QChar o ...@@ -3856,6 +3856,7 @@ void FakeVimHandler::Private::searchBalanced(bool forward, QChar needle, QChar o
// Making this unconditional feels better, but is not "vim like". // Making this unconditional feels better, but is not "vim like".
if (oldLine != cursorLine() - cursorLineOnScreen()) if (oldLine != cursorLine() - cursorLineOnScreen())
scrollToLine(cursorLine() - linesOnScreen() / 2); scrollToLine(cursorLine() - linesOnScreen() / 2);
setPosition(pos);
setTargetColumn(); setTargetColumn();
updateSelection(); updateSelection();
recordJump(); 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