Commit 1a03adf4 authored by hluk's avatar hluk Committed by hjk

FakeVim: Always use valid text cursor

Change-Id: Iacf7f96d0b0295c85905e3bbb7efb04c416a8ef2
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 57712741
......@@ -2130,6 +2130,9 @@ void FakeVimHandler::Private::enterFakeVim()
QTC_ASSERT(!g.inFakeVim, qDebug() << "enterFakeVim() shouldn't be called recursively!"; return);
m_cursor = EDITOR(textCursor());
if (m_cursor.isNull())
m_cursor = QTextCursor(document());
g.inFakeVim = true;
removeEventFilter();
......
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