forked from qt-creator/qt-creator
fakevim: 'I' would replace text between current position and first non-blank on line
This commit is contained in:
@@ -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());
|
||||||
|
Reference in New Issue
Block a user