Browse Source

Fixed spellcheck error marking when writing for instance 'a' at the end of line comments

merge-requests/365/head
eidheim 8 years ago
parent
commit
88a446144c
  1. 3
      src/source_spellcheck.cc

3
src/source_spellcheck.cc

@ -423,7 +423,8 @@ bool Source::SpellCheckView::is_word_iter(const Gtk::TextIter& iter) {
if(is_code_iter(iter))
return false;
auto next_iter=iter;
if(next_iter.forward_char() && is_code_iter(next_iter))
if(next_iter.forward_char() && is_code_iter(next_iter) &&
!(comment_tag && iter.ends_tag(comment_tag))) // additional check for end of line comment
return false;
return true;
}

Loading…
Cancel
Save