Commit 12636605 authored by hjk's avatar hjk
Browse files

fakevim: update state after pressing <Return>

parent ea68c437
...@@ -648,6 +648,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, const QString &text) ...@@ -648,6 +648,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
} else if (key == Key_Return) { } else if (key == Key_Return) {
m_tc.movePosition(StartOfLine); m_tc.movePosition(StartOfLine);
m_tc.movePosition(Down); m_tc.movePosition(Down);
finishMovement();
} else if (key == Key_Home) { } else if (key == Key_Home) {
m_tc.movePosition(StartOfLine, KeepAnchor); m_tc.movePosition(StartOfLine, KeepAnchor);
finishMovement(); finishMovement();
......
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