Commit f5258cbc authored by hjk's avatar hjk
Browse files

fakevim: disable Shift-Up style keyboard selection in insert mode.

parent 65c5a84e
......@@ -2779,7 +2779,8 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
} else if (!input.text().isEmpty()) {
insertInInsertMode(input.text());
} else {
return EventUnhandled;
// We don't want fancy stuff in insert mode.
return EventHandled;
}
updateMiniBuffer();
return EventHandled;
......@@ -3591,10 +3592,6 @@ void FakeVimHandler::Private::searchBalanced(bool forward, QChar needle, QChar o
--level;
if (level == 0) {
const int oldLine = cursorLine() - cursorLineOnScreen();
QTextCursor tc = cursor();
tc.setPosition(pos, MoveAnchor);
tc.clearSelection();
setCursor(tc);
// Making this unconditional feels better, but is not "vim like".
if (oldLine != cursorLine() - cursorLineOnScreen())
scrollToLine(cursorLine() - linesOnScreen() / 2);
......
Supports Markdown
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