forked from qt-creator/qt-creator
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:
1
src/plugins/fakevim/fakevimhandler.cpp
Normal file → Executable file
1
src/plugins/fakevim/fakevimhandler.cpp
Normal file → Executable 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));
|
||||
|
||||
Reference in New Issue
Block a user