[Github-comments] [geany/geany] Avoid re-scanning the string (PR #2962)

xiota notifications at xxxxx
Thu Nov 25 06:17:36 UTC 2021


Well... it's inside an `if` block, so the `pos` is guaranteed to point to the part of the string that starts with "Entering directory".
```
12345678901234567890
Entering directory
```
I just tested the change with `+18`, and it captures the path correctly.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2962#issuecomment-978871585
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211124/58752197/attachment.htm>


More information about the Github-comments mailing list