https://bugs.kde.org/show_bug.cgi?id=454417

Ismael Asensio <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
            Version|                            |6.28
  Fixed/Implemented|                            |
                 In|                            |
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/ktexteditor/-/commit
                   |                            |/3ded1f1e15c4ac57a1a916d107
                   |                            |b1a4cf644ae0e5

--- Comment #5 from Ismael Asensio <[email protected]> ---
Git commit 3ded1f1e15c4ac57a1a916d107b1a4cf644ae0e5 by Ismael Asensio.
Committed on 28/06/2026 at 14:20.
Pushed by cullmann into branch 'master'.

vi-mode: Fix reversed mouse selection range

When the mouse selection changes, the vi-mode gets to process it in
`VisualViMode::updateSelection()` via a signal-slot connection, but at
this point the cursor position has not yet been updated.

The mouse selection range is always sorted (top-left corner first), but
the visual mode has to respect the direction by setting the selection
start point on the opposite corner than the cursor. Since the cursor is
not yet updated, it couldn't detect and set the corners, failing when
the mouse selection goes from bottom-right to top-left.

Fix this behavior by storing the last selection range to compare with
the cursor position, and correctly assess the direction of the selection
FIXED-IN: 6.28

M  +6    -1    src/vimode/modes/visualvimode.cpp
M  +1    -0    src/vimode/modes/visualvimode.h

https://invent.kde.org/frameworks/ktexteditor/-/commit/3ded1f1e15c4ac57a1a916d107b1a4cf644ae0e5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to