aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-06-19 12:34:43 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-07-02 08:41:51 +0000
commit9da307765194bd2db480bc7e523e378950bcd2de (patch)
tree809bc90a5d83d9bd91f243cc3177af4b9f663dc3 /src/plugins/fakevim
parent853f1226e08f2f129c2673354f60f0fb0a4f36b1 (diff)
VCS: FakeVim: Ensure log editor is handled as readonly
Fixes: QTCREATORBUG-22595 Change-Id: Iab51eda5e55d36e98cf0ba5116853d6bee1dbd10 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/fakevim')
-rw-r--r--src/plugins/fakevim/fakevimhandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
index 955f3f6062..adb77c7c0d 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -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) {