Browse Source

Spellcheck errors are no longer removed if buffer starts with string or comment context

merge-requests/365/head
eidheim 9 years ago
parent
commit
f7f50a3685
  1. 2
      src/source_spellcheck.cc

2
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()) {

Loading…
Cancel
Save