Browse Source

Slight correction of extend_selection() for markdown code blocks

pipelines/280567345
eidheim 5 years ago
parent
commit
28ed5fef60
  1. 4
      src/source.cpp

4
src/source.cpp

@ -1481,9 +1481,9 @@ void Source::View::extend_selection() {
} }
} }
// Select no_spellcheck_tag block if markdown, and not about to select line // Select no_spellcheck_tag block if markdown
if(no_spellcheck_tag && language->get_id() == "markdown" && start_stored.has_tag(no_spellcheck_tag) && end_stored.has_tag(no_spellcheck_tag) && if(no_spellcheck_tag && language->get_id() == "markdown" && start_stored.has_tag(no_spellcheck_tag) && end_stored.has_tag(no_spellcheck_tag) &&
!(start.starts_line() && end.ends_line() && start.has_tag(no_spellcheck_tag) && end.has_tag(no_spellcheck_tag))) { (!start.has_tag(no_spellcheck_tag) || !end.has_tag(no_spellcheck_tag))) {
start = start_stored; start = start_stored;
end = end_stored; end = end_stored;
if(!start.starts_tag(no_spellcheck_tag)) if(!start.starts_tag(no_spellcheck_tag))

Loading…
Cancel
Save