Commit 97769d1a authored by Lukas Holecek's avatar Lukas Holecek Committed by hjk
Browse files

fakevim: Avoid unnecessary clearing message



Change-Id: Ied9d1f2702dd1cb1b9a46547567a1df35ccfe256
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 44d7c848
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment