forked from qt-creator/qt-creator
Fixes: fakevim: disable main cursor in search mode
This commit is contained in:
@@ -780,6 +780,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
|
|||||||
m_commandHistoryIndex = m_commandHistory.size() - 1;
|
m_commandHistoryIndex = m_commandHistory.size() - 1;
|
||||||
updateMiniBuffer();
|
updateMiniBuffer();
|
||||||
} else if (key == '/' || key == '?') {
|
} else if (key == '/' || key == '?') {
|
||||||
|
enterExMode(); // to get the cursor disabled
|
||||||
m_mode = (key == '/') ? SearchForwardMode : SearchBackwardMode;
|
m_mode = (key == '/') ? SearchForwardMode : SearchBackwardMode;
|
||||||
m_commandBuffer.clear();
|
m_commandBuffer.clear();
|
||||||
m_searchHistory.append(QString());
|
m_searchHistory.append(QString());
|
||||||
|
Reference in New Issue
Block a user