Commit 2ec277bc authored by hluk's avatar hluk Committed by hjk
Browse files

FakeVim: Keep visual selection when focusing editor



Change-Id: I4dddcf8f8a214810e140af356078cefe82e9381c
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent aa9c489f
......@@ -2210,8 +2210,12 @@ void FakeVimHandler::Private::focus()
setTargetColumn();
setAnchor();
commitCursor();
} else {
} else if (g.submode != NoSubMode || g.mode == ExMode) {
leaveVisualMode();
setPosition(qMin(position(), anchor()));
setTargetColumn();
setAnchor();
commitCursor();
}
bool exitCommandLine = (g.subsubmode == SearchSubSubMode || g.mode == ExMode);
......
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