From 02966feab6b75a1f81f1923a49c8e0576ca85333 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 15 Sep 2010 16:19:25 +0200
Subject: [PATCH] fakevim: handle editors that get removed during execution of
 a command

---
 src/plugins/fakevim/fakevimhandler.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
index 14a9b6ed7ec..01a768e5ec8 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -1135,12 +1135,11 @@ EventResult FakeVimHandler::Private::handleEvent(QKeyEvent *ev)
             moveLeft();
 
         //m_oldPosition = position();
-    }
-
-    if (hasConfig(ConfigShowMarks))
-        updateSelection();
+        if (hasConfig(ConfigShowMarks))
+            updateSelection();
 
-    exportSelection();
+        exportSelection();
+    }
 
     return result;
 }
-- 
GitLab