Search results sometimes incorrect when using whole word and a pattern starting/ending with a word delimiter
Thanks in advance for your bug report!
- [X] Have you reproduced issue in safe mode?
- [X] Have you used the debugging guide to try to resolve the issue?
- [X] Have you checked our FAQs to make sure your question isn't answered there?
- [X] Have you checked to make sure your issue does not already exist?
- [X] Have you checked you are on the latest release of Pulsar?
What happened?
I've noticed this several times in the past, without taking the trouble to isolate it properly in order to reproduce and report it. This typically happened to me when searching for structure members in C in the form ->struct_member, but there may have been changes in this respect in recent versions as I haven't had this problem for a while. Anyway, see below for a reproducible case with pulsar 1.114.0.
Pulsar version
1.114.0
Which OS does this happen on?
🐧 Arch based (Manjaro, Garuda, etc.)
OS details
Arch Linux
Which CPU architecture are you running this on?
x86_64/AMD64
What steps are needed to reproduce this?
- Open a new blank file and add this content:
word1-word2 word1-word2 word1-word2 - Open the search bar and check Whole Word, then enter the text to search for:
word1-.
At this point, all's well: there are 3 search results, which can be navigated by clicking Find. Now:
- Delete the first line -> there's only 1 search result out of 2, in the last line.
- Ctrl-Z -> there are only 2 search results out of 3, in the first two lines.
- Ctrl-Shift-Z -> zero search results out of 2.
Additional Information:
No response
This and #942 feel like they'll get addressed at the same time. This is far from my area of expertise, but I might try to investigate when I get the time. Thanks!