Skip to content
Snippets Groups Projects
Commit 83cc22b2 authored by hjk's avatar hjk
Browse files

fakevim: fix QTCREATORBUG-152

It took two 'u' to undo a '~'.
parent a39e074a
No related branches found
No related tags found
No related merge requests found
......@@ -1574,6 +1574,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
} else if (key == 'Z') {
m_submode = CapitalZSubMode;
} else if (key == '~' && !atEndOfLine()) {
beginEditBlock();
setAnchor();
moveRight(qMin(count(), rightDist()));
QString str = selectedText();
......@@ -1583,6 +1584,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
str[i] = c.isUpper() ? c.toLower() : c.toUpper();
}
m_tc.insertText(str);
endEditBlock();
} else if (key == Key_PageDown || key == control('f')) {
moveDown(count() * (linesOnScreen() - 2) - cursorLineOnScreen());
scrollToLineInDocument(cursorLineInDocument());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment