fakevim: fix cursor position after 'r'

expected cursor position is on last character which was replaced

Merge-request: 99
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-01-21 17:38:30 +01:00
committed by hjk
parent 978fa5d03d
commit 9b2465e37f

View File

@@ -1190,6 +1190,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_tc.insertText(QString(count(), text.at(0)));
m_movetype = MoveExclusive;
setDotCommand("%1r" + text, count());
moveLeft();
}
setTargetColumn();
m_submode = NoSubMode;