Bug 506931

Summary: Repeating the "find selected" action no longer highlights the original selection
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Jonathan Poelen <jonathan.poelen>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.15.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jonathan Poelen 2025-07-11 23:12:57 UTC
When you use "Find selected" (Ctrl+H) to move to the next selection, the original selection is not highlighted. It becomes so again if we scroll (with the mouse or via a keyboard shortcut), but it's then the current selection that will no longer be highlighted.

example ([] represents selection, {} highlighting):

[aa]
{aa}
 bb
{aa}

Ctrl+H

 aa
[aa]
 bb
{aa}

Ctrl+H

 aa
{aa}
 bb
[aa]

Ctrl+H

[aa]
{aa}
 bb
{aa}

Expected: that all "aa" in this example to be highlighted or selected.