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

This commit is contained in:
Martin Aumueller
2008-12-25 03:43:16 +01:00
committed by hjk
parent 936f8885a8
commit 13481871c9

View File

@@ -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)