Commit 13481871 authored by Martin Aumueller's avatar Martin Aumueller Committed by hjk
Browse files

fakevim: fix 'i' at the end of a line (insert before last character)

parent 936f8885
......@@ -697,6 +697,8 @@ bool FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
} else if (key == 'i') {
enterInsertMode();
updateMiniBuffer();
if (atEol())
m_tc.movePosition(Left, MoveAnchor, 1);
} else if (key == 'I') {
enterInsertMode();
if (m_gflag)
......
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