From a1c6ac6a209e16c98351c538534b7e90645e559a Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 6 Sep 2015 14:31:23 +0200 Subject: [PATCH] minor spellcheck fix. --- src/source.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source.cc b/src/source.cc index fc84387..efdd2ea 100644 --- a/src/source.cc +++ b/src/source.cc @@ -198,7 +198,7 @@ Source::View::View(const boost::filesystem::path &file_path): file_path(file_pat if(!is_word_iter(iter)) { //Might have used space or - to split two words auto first=iter; auto second=iter; - if(first.backward_char() && second.forward_char()) { + if(first.backward_char() && second.forward_char() && !second.starts_line()) { get_buffer()->remove_tag_by_name("spellcheck_error", first, second); auto word=spellcheck_get_word(first); spellcheck_word(word.first, word.second);