From 88a446144ccab012231eba785acb3108922b63a0 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 7 Sep 2017 08:24:11 +0200 Subject: [PATCH] Fixed spellcheck error marking when writing for instance 'a' at the end of line comments --- src/source_spellcheck.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/source_spellcheck.cc b/src/source_spellcheck.cc index 7844c9f..b21e4d5 100644 --- a/src/source_spellcheck.cc +++ b/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; }