We were advancing by 1 byte in case of an empty match to break out of 
infinitely matching the same position again and again, but moving by bytes 
could lead to starting the next match inside a multi-byte character, which 
`GRegex` didn't quite like.

Fix this by advancing one whole character instead of one byte.

Fixes #4549.
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/4550

-- Commit Summary --

  * search: Show GRegex errors if any
  * search: Fix matching after an empty match in some cases

-- File Changes --

    M src/search.c (21)

-- Patch Links --

https://github.com/geany/geany/pull/4550.patchhttps://github.com/geany/geany/pull/4550.diff
-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/4550
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/[email protected]>

Reply via email to