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

Christoph Cullmann <christ...@cullmann.dev> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/ktexteditor/-/commit
                   |                            |/0cb99379131b6fb2b80637e6e8
                   |                            |6da428a630f3bf
         Resolution|---                         |FIXED

--- Comment #4 from Christoph Cullmann <christ...@cullmann.dev> ---
Git commit 0cb99379131b6fb2b80637e6e86da428a630f3bf by Christoph Cullmann, on
behalf of Waqar Ahmed.
Committed on 12/06/2025 at 19:45.
Pushed by cullmann into branch 'master'.

Draw selection background ourselves

We were using the "selectionFormats" parameter of QTextLayout::draw()
to draw selections and supplied background + foreground formats for
drawing selections. This leads to extremely poor performance when
there are a lot of "selection formats" e.g., a large list of numbers
on a single line.

To fix this, draw the selection background ourselves and handle the
foreground formats during text layouting phase.

M  +5    -22   src/render/katerenderer.cpp

https://invent.kde.org/frameworks/ktexteditor/-/commit/0cb99379131b6fb2b80637e6e86da428a630f3bf

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

Reply via email to