[Github-comments] [geany-plugins] spellcheck: Use direct buffer access instead of deprecated API (2c48166)

Colomban Wendling notifications at xxxxx
Sat Feb 20 22:17:01 UTC 2016


This should be a fair bit faster as the word is only even fetched only if its length would match the clickpos one's, in case the `strcmp()` would have failed anyway.  And as we know the length, we can use `strncmp()` and then any pointer (without necessarily a trailing `\0`).

Also, the gap is not very likely to be in the middle of a word, so unlikely to have to move.  And anyway, would move at worse once.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/commit/2c481661d22cb16fc1b6c62e4331d410c9d77eac#commitcomment-16223678
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160220/d775ab73/attachment.html>


More information about the Github-comments mailing list