Fixes: fakevim: disable main cursor in search mode

This commit is contained in:
hjk
2009-01-27 15:09:56 +01:00
parent e71c9807e3
commit fd90f88866

View File

@@ -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());