forked from qt-creator/qt-creator
fakevim: fix 'i' at the end of a line (insert before last character)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user