Created attachment 191145 [details] Screenshot showing result of double-clicking first word in paragraph. SUMMARY When selecting text, double click is grabbing too much, i.e. it is extending the selection through the return character to the adjacent word. STEPS TO REPRODUCE 1. Create a text box. Write some text. Terminate with a return character and write some more text. 2. Double click on either the last word of the first paragraph, or the first word of the second paragraph. OBSERVED RESULT The selection will extend through the return character to the next (or previous) word in the adjoining paragraph, leaving both words selected after a double-click, indicating that the selection does not see the return character as being equivalent to other non-word characters like space in defining the boundaries of the word. EXPECTED RESULT Selection should be bounded by return character the same as it would be by a space character, allowing selection of the first or last word of a paragraph by double-clicking without sucking in the last or first word of the adjacent paragraph. SOFTWARE/OS VERSIONS Windows: 10 ADDITIONAL INFORMATION This affects non-rectangular text containers exactly the same.
Created attachment 191148 [details] Second Experiment showing inconsistent behavior of spaces and returns in selection boundaries.
Further experimentation shows additional odd behaviour: When paragraphs are separated by two return characters, boundary of words is recognized. If spaces are placed between two return characters, boundary of words is NOT recognized.
Git commit 7f1454ca276c51bd4883a0859ca9244b0c9f4505 by Wolthera van Hövell tot Westerflier. Committed on 23/04/2026 at 08:43. Pushed by woltherav into branch 'master'. Fix word selection when there's hard breaks present. Hard breaks get hidden by default, which is why they sometimes don't have a cursor pos, so we try to search for them better. M +30 -0 libs/flake/text/KoSvgTextShape.cpp https://invent.kde.org/graphics/krita/-/commit/7f1454ca276c51bd4883a0859ca9244b0c9f4505
Git commit 5250c9e36339dfc0c21881ca4b681850323db3d6 by Wolthera van Hövell. Committed on 23/04/2026 at 08:49. Pushed by woltherav into branch 'krita/6.0'. Fix word selection when there's hard breaks present. Hard breaks get hidden by default, which is why they sometimes don't have a cursor pos, so we try to search for them better. (cherry picked from commit 7f1454ca276c51bd4883a0859ca9244b0c9f4505) Co-authored-by: Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com> M +30 -0 libs/flake/text/KoSvgTextShape.cpp https://invent.kde.org/graphics/krita/-/commit/5250c9e36339dfc0c21881ca4b681850323db3d6