We remove the underscore character temporarily from the wordchars to make Scintilla split words on underscore. After splitting the current line into words, we add the underscore again to the document's wordchars setting if it was in before.
Fixes #496. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/512
-- Commit Summary --
* SpellCheck: Treat underscore as word seperator * SpellCheck: Reset wordchars only if we modified it before
-- File Changes --
M spellcheck/src/speller.c (29)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/512.patch https://github.com/geany/geany-plugins/pull/512.diff
Merged #512.
github-comments@lists.geany.org