You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prevent "research" from generating matches if search string is zero-length #172
I was semi-surprised to see a non-zero result printed.
Any chance that the plugin could trap on this situation and not match anything?
Same for ".search()" and ".replace()" and ".rereplace()" as well, of course.
Obviously I can do that trapping as well, before calling.
Ach--sorry for omitting that.
I'm still using Python 2.7 / 1.5.4
But, I would expect the newer would still work the same way?
Again, I wouldn't call it a "bug", but it might be a nice convenience for the user to trap this.
Notepad++ itself doesn't return any matches if Find what is empty and a Find Next is done.
Activity
chcg commentedon Dec 9, 2020
@sasumner With which version of the plugin? python2.7 aka 1.5.4 or a python3 beta release?
sasumner commentedon Dec 9, 2020
@chcg
Ach--sorry for omitting that.
I'm still using Python 2.7 / 1.5.4
But, I would expect the newer would still work the same way?
Again, I wouldn't call it a "bug", but it might be a nice convenience for the user to trap this.
Notepad++ itself doesn't return any matches if Find what is empty and a Find Next is done.
Ekopalypse commentedon Dec 31, 2024
@chcg - Can this be labelled
Enhancementor can it be closed?alankilborn commentedon Dec 31, 2024
I don't think it should be closed.
It seems to find a match at every position in a document.
This seems, well, unexpected.