forked from qt-creator/qt-creator
fakevim: d$ and D would delete newline
This commit is contained in:
@@ -872,6 +872,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
|
|||||||
} else if (key == '$' || key == Key_End) {
|
} else if (key == '$' || key == Key_End) {
|
||||||
int submode = m_submode;
|
int submode = m_submode;
|
||||||
moveToEndOfLine();
|
moveToEndOfLine();
|
||||||
|
m_moveType = MoveExclusive;
|
||||||
finishMovement();
|
finishMovement();
|
||||||
if (submode == NoSubMode)
|
if (submode == NoSubMode)
|
||||||
m_desiredColumn = -1;
|
m_desiredColumn = -1;
|
||||||
@@ -939,7 +940,8 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
|
|||||||
recordBeginGroup();
|
recordBeginGroup();
|
||||||
m_submode = DeleteSubMode;
|
m_submode = DeleteSubMode;
|
||||||
moveDown(qMax(count() - 1, 0));
|
moveDown(qMax(count() - 1, 0));
|
||||||
moveRight(rightDist());
|
m_moveType = MoveExclusive;
|
||||||
|
moveToEndOfLine();
|
||||||
finishMovement();
|
finishMovement();
|
||||||
} else if (key == control('d')) {
|
} else if (key == control('d')) {
|
||||||
int sline = cursorLineOnScreen();
|
int sline = cursorLineOnScreen();
|
||||||
|
Reference in New Issue
Block a user