Commit e27c7eb5 authored by Lukas Holecek's avatar Lukas Holecek Committed by hjk
Browse files

FakeVim: Use correct text cursor position when focusing editor



Change-Id: I5d57f95e98e8fb4de063b7cbe2875f11023dd1a9
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 244be85f
......@@ -2376,10 +2376,11 @@ void FakeVimHandler::Private::unfocus()
void FakeVimHandler::Private::fixExternalCursor(bool focus)
{
m_fixCursorTimer.stop();
if (isVisualCharMode() && !focus && !hasThinCursor()) {
// Select the character under thick cursor for external operations with text selection.
fixExternalCursorPosition(false);
m_fixCursorTimer.stop();
} else if (isVisualCharMode() && focus && hasThinCursor()) {
// Fix cursor position if changing its shape.
// The fix is postponed so context menu action can be finished.
......
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