Geany's replace function replaces until the search string cannot be found again. This seems like just the right thing to do, but it has some undesirable effects
Example:
on a file, do the replace equivalent to
:%s/^...//g
in vim this strips away the first three characters as I intended. Geany leaves only len(line) mod 3 characters on every line - only then '^...' does not match anymore.
I am actually not sure wether everyone finds this unintended behaviour, but it's really unexpected for me. I think it should only scan the file once.
What about something like
^.{3}
?This should have been fixed in the 1.23 release, s/^...//g equivalent definitely only removes three characters on current git.
Just an update, it appears that the fix was not completed before 1.23.1 so it will be in 1.24.
Fixed with [c83a93eb65ea102ebe1f577593a3d9a9c4152aaf]
Related
Commit: [c83a93]