[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ktexteditor] src/vimode: vimode: don't scroll the view when leaving visual mode by clicking the mou
From:       Miquel_Sabaté <mikisabate () gmail ! com>
Date:       2014-07-18 8:38:11
Message-ID: E1X83gB-0005Eu-PI () scm ! kde ! org
[Download RAW message or body]

Git commit fce3eb29b8dff9551f4474e61d8b631447c4c0a2 by Miquel Sabaté.
Committed on 18/07/2014 at 08:37.
Pushed by mssola into branch 'master'.

vimode: don't scroll the view when leaving visual mode by clicking the mouse.

REVIEW: 119351
BUG: 337286

M  +2    -0    src/vimode/katevivisualmode.cpp

http://commits.kde.org/ktexteditor/fce3eb29b8dff9551f4474e61d8b631447c4c0a2

diff --git a/src/vimode/katevivisualmode.cpp b/src/vimode/katevivisualmode.cpp
index 0d807b4..1c7c579 100644
--- a/src/vimode/katevivisualmode.cpp
+++ b/src/vimode/katevivisualmode.cpp
@@ -255,6 +255,8 @@ void KateViVisualMode::updateSelection()
 
     // If not valid going back to normal mode
     if (!r.isValid()) {
+        // Don't screw up the cursor's position. See BUG #337286.
+        m_pendingResetIsDueToExit = true;
         reset();
         return;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic