Bug 512929 - First search occurrence loses highlight after jumping to next match, unlike other matches
Summary: First search occurrence loses highlight after jumping to next match, unlike o...
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: search (other bugs)
Version First Reported In: 25.08.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-04 08:56 UTC by Ghislain
Modified: 2025-12-04 08:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ghislain 2025-12-04 08:56:37 UTC
SUMMARY
First search occurrence loses highlight after jumping to next match, unlike other matches.

STEPS TO REPRODUCE
Open a document in Kate.
Press Ctrl+F and search for a word that appears multiple times.
Observe that the first occurrence is highlighted.
Press “Next” to jump to the next match.
Notice that the first occurrence is no longer highlighted, while all other matches remain highlighted.

OBSERVED RESULT
The first occurrence loses its highlight after moving to the next match.
All other matches remain highlighted, except the very first one.
This creates the impression that one match is missing from the global highlights.

EXPECTED RESULT
All occurrences of the searched word should remain highlighted consistently, including the first one.
Alternatively, the active match could be distinguished with a configurable background color (in Color Theme Editor), so users can highlight it if they want, instead of it appearing “unhighlighted.”

SOFTWARE/OS VERSIONS:
Linux Ubuntu 25.10, KDE Plasma Version: 6.4.5, KDE Frameworks Version: 6.17.0, Qt Version: 6.9.2

ADDITIONAL INFORMATION
This behavior differs from classical editors like Notepad++ or Visual Studio Code, where all matches remain highlighted consistently.