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

Christoph Cullmann <cullm...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |5.112
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/ktexteditor/-/commit
                   |                            |/02d2aa2984a54fb63b586448b8
                   |                            |d859a514ad285b

--- Comment #12 from Christoph Cullmann <cullm...@kde.org> ---
Git commit 02d2aa2984a54fb63b586448b8d859a514ad285b by Christoph Cullmann, on
behalf of RĂ©mi Peuchot.
Committed on 31/10/2023 at 16:30.
Pushed by cullmann into branch 'kf5'.

Fix selection shrink when indenting

'editRemoveText' indirectly triggers 'TextRange::checkValidity'
which silently shrink the selection if the removed text is at the start
or end of the given range.

'editInsertText' will insert text without expanding the selection.

The fix consists of doing insertion before deletion so that the
selection is not shrinked.

(more details in the Merge Request)
FIXED-IN:5.112


(cherry picked from commit 00f218cdf0adce8b0e0b96fd0107803946848e07)

M  +5    -2    src/utils/kateautoindent.cpp

https://invent.kde.org/frameworks/ktexteditor/-/commit/02d2aa2984a54fb63b586448b8d859a514ad285b

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

Reply via email to