forked from qt-creator/qt-creator
fakevim: Avoid unnecessary clearing message
Change-Id: Ied9d1f2702dd1cb1b9a46547567a1df35ccfe256 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -2326,6 +2326,7 @@ void FakeVimHandler::Private::updateMiniBuffer()
|
||||
cursorPos = m_commandBuffer.cursorPos() + 1;
|
||||
} else if (!m_currentMessage.isEmpty()) {
|
||||
msg = m_currentMessage;
|
||||
m_currentMessage.clear();
|
||||
} else if (g.mapStates.size() > 1 && !g.mapStates.last().silent) {
|
||||
// Do not reset previous message when after running a mapped command.
|
||||
return;
|
||||
@@ -2346,8 +2347,6 @@ void FakeVimHandler::Private::updateMiniBuffer()
|
||||
msg = "-- COMMAND --";
|
||||
}
|
||||
|
||||
m_currentMessage.clear();
|
||||
|
||||
emit q->commandBufferChanged(msg, cursorPos);
|
||||
|
||||
int linesInDoc = linesInDocument();
|
||||
|
||||
Reference in New Issue
Block a user