Commit b9480bba authored by Miquel Sabaté's avatar Miquel Sabaté

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

Backport from commit fce3eb29b8dff9551f4474e61d8b631447c4c0a2 in KTextEditor.
parent 760f4d9c
......@@ -245,6 +245,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;
}
......
Markdown is supported
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