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

            Bug ID: 529019
           Summary: Occurence highlighting upon selection is broken in
                    KTextEditor 6.32.0 (affects Kate and Kwrite).
    Classification: Frameworks and Libraries
           Product: frameworks-ktexteditor
      Version First 6.32.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
If you double click on a word to select it, it will highlight all instances, if
you click away it will unhighlight on the current on the current view, but if
you scroll down to other instances and come back all will still be highlighted,
matter fact even if you click away it will keep it hightlighted as if it was
selected, to clear the state you need to select something else (but now that
other selection will have the bug, essentially you can't escape something being
highlighted).
Second obversion: Remember how it was cleared temporarily on the current view?
well if you try selecting the same string again (after that you have clicked
away) it will not highlight it on the current view.

Second bug: Now selecting a single character will no longer highlight
hightlight the other instances, this is no good, I have plenty of single letter
variables in my code!

Workaround:
`sudo pacman -U /var/cache/pacman/pkg/ktexteditor-6.31.0-1-x86_64.pkg.tar.zst`
This command reverts the package to the previous version, where none of this
happens.
So I assume it is a very recent regression given when it appeared and this fix.

STEPS TO REPRODUCE
1. open a long file with multiple occurrences of words.
2. select a string that has multiple occurences.
3. click away in the file (this is will clear it in the current view)
optional: reselect the same string (you can notice that it doesn't highlight)
4. scroll away and then come back to where you initially selected (it will now
be highlighted)
5. try selecting a single character (it will fail to highlight)

OBSERVED RESULT
highlighted state remains, impossible to undo. (if you have other files opened
the state will over to them as well)
I have verified it in 2 different machines after update and reboot.

EXPECTED RESULT
It should stop highlighted when clicked away.
It should highlight when a single character is selected.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): Arch Linux x86_64 (wayland)
KDE Plasma Version: 6.8.3
KDE Frameworks Version: 6.32.0
Qt Version: 6.12.0

ADDITIONAL INFORMATION
I noticed this using Kate, which is my main text editor, I will for now
downgrade the package until there's an upstream fix by you awesome people.

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

Reply via email to