Browse Source

Fixes #425: symbols and emojis no longer considered word characters when spellchecking

pipelines/143601543
eidheim 6 years ago
parent
commit
34c395de48
  1. 2
      src/source_spellcheck.cc

2
src/source_spellcheck.cc

@ -494,6 +494,8 @@ bool Source::SpellCheckView::is_word_iter(const Gtk::TextIter &iter) {
++backslash_count;
if(backslash_count % 2 == 1)
return false;
if(*iter >= 0x2030) // Symbols and emojis
return false;
if(((*iter >= 'A' && *iter <= 'Z') || (*iter >= 'a' && *iter <= 'z') || *iter >= 128))
return true;
if(*iter == '\'')

Loading…
Cancel
Save