VCS: FakeVim: Ensure log editor is handled as readonly

Fixes: QTCREATORBUG-22595
Change-Id: Iab51eda5e55d36e98cf0ba5116853d6bee1dbd10
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2019-06-19 12:34:43 +02:00
parent 853f1226e0
commit 9da3077651
2 changed files with 4 additions and 1 deletions

View File

@@ -4139,6 +4139,8 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input)
// Process input for a sub-mode.
if (input.isEscape()) {
handled = handleEscape();
} else if (m_wasReadOnly) {
return EventUnhandled;
} else if (g.subsubmode != NoSubSubMode) {
handled = handleCommandSubSubMode(input);
} else if (g.submode == NoSubMode) {