Commit 6d5c1210 authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

fakevim: 'I' should enter insert mode even when not in visual mode



Merge-request: 126
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 63751cda
......@@ -1590,7 +1590,6 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
int endLine = lineForPosition(position());
m_visualInsertCount = qAbs(endLine - beginLine);
setPosition(qMin(position(), anchor()));
enterInsertMode();
} else {
if (m_gflag)
moveToStartOfLine();
......@@ -1599,6 +1598,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_gflag = false;
m_tc.clearSelection();
}
enterInsertMode();
} else if (key == control('i')) {
if (!m_jumpListRedo.isEmpty()) {
m_jumpListUndo.append(cursorPosition());
......
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