LGTM. First commit makes a lot of sense and fixes and actual possible issue. Second seems a little more theoretical and slightly slower in the regular case, but fair enough anyway.
--
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-plugins/pull/605#issuecomment-333005935