Commit fe261f0a authored by hjk's avatar hjk Committed by Roberto Raggi
Browse files

small fix for ~ at end of line

parent 3ae02653
......@@ -403,7 +403,7 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
finishMovement();
} else if (key == 'z') {
m_submode = ZSubMode;
} else if (key == '~') {
} else if (key == '~' && !atEol()) {
m_tc.movePosition(Right, KeepAnchor, qMin(count(), rightDist()));
QString str = m_tc.selectedText();
for (int i = str.size(); --i >= 0; ) {
......
Supports Markdown
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