From 2086e8002493cc506ee49a87c0a946a064f32368 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Fri, 24 Nov 2017 13:52:17 -0800 Subject: [PATCH] Special character strings need double quotes Fixes visual block mode for #45 Also add a changelog --- CHANGELOG.md | 1 + autoload/lsc/highlights.vim | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11006b30..4020ef9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Bug Fix: Use buffer filetype rather than current filetype when flushing file changes for background buffers. - Update the diagnostic under the cursor when diagnostics change for the file. +- Bug Fix: Don't change diagnostic highlights while in visual mode. # 0.2.6 diff --git a/autoload/lsc/highlights.vim b/autoload/lsc/highlights.vim index 8710a5d9..bab3ee7f 100644 --- a/autoload/lsc/highlights.vim +++ b/autoload/lsc/highlights.vim @@ -35,8 +35,8 @@ endfunction " mode the text will be changed and highlights will update anyway. function! s:DeferForMode() abort let mode = mode() - if mode == 's' || mode == 'S' || mode == '\' || - \ mode == 'v' || mode == 'V' || mode == '\' + if mode == 's' || mode == 'S' || mode == "\" || + \ mode == 'v' || mode == 'V' || mode == "\" call lsc#util#once('CursorHold,CursorMoved', \ function('lsc#highlights#updateDisplayed')) return v:true