fakevim: 'I' would replace text between current position and first non-blank on line

This commit is contained in:
Martin Aumueller
2009-02-16 23:39:39 +01:00
parent cc850f6f5b
commit b1e73ff272

View File

@@ -1001,12 +1001,12 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
moveLeft();
} else if (key == 'I') {
recordBeginGroup();
setAnchor();
enterInsertMode();
if (m_gflag)
moveToStartOfLine();
else
moveToFirstNonBlankOnLine();
m_tc.clearSelection();
} else if (key == control('i')) {
if (!m_jumpListRedo.isEmpty()) {
m_jumpListUndo.append(position());