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

Simon Depiets <sdepi...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://commits.kde.org/son
                   |                            |net/ffd715bc17b3617ca741fc3
                   |                            |530bba863d0e86757
         Resolution|---                         |FIXED

--- Comment #6 from Simon Depiets <sdepi...@gmail.com> ---
Git commit ffd715bc17b3617ca741fc3530bba863d0e86757 by Simon Depiets.
Committed on 22/09/2018 at 08:40.
Pushed by sdepiets into branch 'master'.

Prevent highlighter from erasing selected text

Summary:
https://phabricator.kde.org/D14447 introduced a regression on Lokalize, the
slotRehighlight method is called when text is selected and the
insertText(QString()) call inside that method removes all text selected in the
cursor.

Clearing the selection before doing that call solves this issue.

Reviewers: #framework_syntax_highlighting, mlaurent, dfaure

Reviewed By: dfaure

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D15686

M  +3    -0    src/ui/highlighter.cpp

https://commits.kde.org/sonnet/ffd715bc17b3617ca741fc3530bba863d0e86757

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

Reply via email to