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(); moveLeft();
} else if (key == 'I') { } else if (key == 'I') {
recordBeginGroup(); recordBeginGroup();
setAnchor();
enterInsertMode(); enterInsertMode();
if (m_gflag) if (m_gflag)
moveToStartOfLine(); moveToStartOfLine();
else else
moveToFirstNonBlankOnLine(); moveToFirstNonBlankOnLine();
m_tc.clearSelection();
} else if (key == control('i')) { } else if (key == control('i')) {
if (!m_jumpListRedo.isEmpty()) { if (!m_jumpListRedo.isEmpty()) {
m_jumpListUndo.append(position()); m_jumpListUndo.append(position());