Bug 407312 - F3 Find Next sometimes skips the next instance of the search string.
Summary: F3 Find Next sometimes skips the next instance of the search string.
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-07 19:00 UTC by Ron Cemer
Modified: 2020-11-28 04:34 UTC (History)
1 user (show)

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 Ron Cemer 2019-05-07 19:00:30 UTC
SUMMARY


STEPS TO REPRODUCE
1. Create a new document, enter the following text:
test

hello  hello  hello
2. Press Ctrl+F to search; enter "hello" (no quotes).  The first "hello" is highlighted.
3. Press Esc to exit search mode.
4. Press Ctrl+Home to go to the beginning of the document.
5. Press F3 to find next.
6. Repeat steps 2-5 until the bug occurs.

OBSERVED RESULT

Sometimes, F3 skips the very next instance of "hello" and goes to the second-next instance.

EXPECTED RESULT

F3 should always go to the very next instance of the search string, after the cursor.

SOFTWARE/OS VERSIONS
Ubuntu 18.04.2 LTS amd64

This bug has been around for several years.  I figured someone would have reported it and it would have been fixed by now.  If it has been fixed, please push the new version to Canonical so it gets pushed out to all of the Ubutu 18.04 users.  Thanks!
Comment 1 Dominik Haumann 2019-05-11 05:10:20 UTC
Which search mode do you use? Just plain text, or regular expressions or similar?

Imo, we should make a unit test out of this.
Comment 2 Ron Cemer 2019-05-11 17:00:54 UTC
I'm using plain text search mode.
Comment 3 Justin Zobel 2020-10-29 10:36:31 UTC
Ron I've just tried to reproduce this issue and ran the search approximately 15 times.

Can you please confirm if this is still occurring for you?
Comment 4 Bug Janitor Service 2020-11-13 04:33:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2020-11-28 04:34:03 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!