Commit 695aa639 authored by hjk's avatar hjk
Browse files

Fixes: fakevim: fix undo behaviour for Key_Delete

    Details:  was not recorded onh the undo stck
parent 592560b5
......@@ -634,7 +634,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
finishMovement("y");
} else if (m_submode == ReplaceSubMode) {
if (atEol())
moveLeft(KeepAnchor);
moveLeft();
else
m_tc.deleteChar();
recordInsertText(text);
......@@ -1019,7 +1019,9 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
moveUp(count() * (linesOnScreen() - 2));
finishMovement();
} else if (key == Key_Delete) {
m_tc.deleteChar();
setAnchor();
moveRight(qMin(1, rightDist()));
recordRemoveSelectedText();
} else if (key == Key_Escape) {
if (m_visualMode != NoVisualMode)
leaveVisualMode();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment