From f7f50a3685ab4b2b184459ef07363faaeef96412 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 26 Oct 2016 12:09:38 +0200 Subject: [PATCH] Spellcheck errors are no longer removed if buffer starts with string or comment context --- src/source_spellcheck.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source_spellcheck.cc b/src/source_spellcheck.cc index e428a06..867ed7f 100644 --- a/src/source_spellcheck.cc +++ b/src/source_spellcheck.cc @@ -104,7 +104,7 @@ Source::SpellCheckView::SpellCheckView() : Gsv::View() { return false; } - bool spell_check=!is_code_iter(iter); + bool spell_check=get_source_buffer()->iter_has_context_class(iter, "string") || get_source_buffer()->iter_has_context_class(iter, "comment"); if(!spell_check) begin_no_spellcheck_iter=iter; while(iter!=get_buffer()->end()) {