fakevim: fix leaving REPLACE mode

previously, the first character typed in command mode would have been inserted into the document

Merge-request: 99
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-01-21 17:38:23 +01:00
committed by hjk
parent 1836aa0633
commit bb4d6a3440

1
src/plugins/fakevim/fakevimhandler.cpp Normal file → Executable file
View File

@@ -1779,6 +1779,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
m_dotCommand += QChar(27);
recordNewUndo();
enterCommandMode();
m_submode = NoSubMode;
} else if (key == Key_Insert) {
if (m_submode == ReplaceSubMode) {
EDITOR(setCursorWidth(m_cursorWidth));