Created attachment 139293 [details] Wrong color drag pixmap SUMMARY Sometimes when selecting text and dragging it out, the syntax highlighting in the resulting drag pixmap does not match the original text STEPS TO REPRODUCE 1. Select some text, looks like in cpp code with "#include foo", selecting the entire line OBSERVED RESULT Pixmap is all yellow EXPECTED RESULT Pixmap looks like the original tex SOFTWARE/OS VERSIONS Linux/KDE Plasma: git master as of 2021-06-13 Qt Version: 5.15.3
Is that breeze light theme? Maybe the renderer thinks that the text is an occurrence...?
Yes. I've also managed to reproduce with other texts with no obvious pattern though
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/251
Git commit 3be086c24ea5b3853b46b6c65af1a8c694186c1f by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 14/01/2022 at 19:33. Pushed by cullmann into branch 'master'. Fix drag pixmap highlight sometimes does not match original text M +12 -0 src/view/kateviewinternal.cpp https://invent.kde.org/frameworks/ktexteditor/commit/3be086c24ea5b3853b46b6c65af1a8c694186c1f