Skip to content

Commit

Permalink
Special character strings need double quotes
Browse files Browse the repository at this point in the history
Fixes visual block mode for #45

Also add a changelog
  • Loading branch information
natebosch committed Nov 24, 2017
1 parent 982a395 commit 2086e80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions autoload/lsc/highlights.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 == '\<c-s>' ||
\ mode == 'v' || mode == 'V' || mode == '\<c-v>'
if mode == 's' || mode == 'S' || mode == "\<c-s>" ||
\ mode == 'v' || mode == 'V' || mode == "\<c-v>"
call lsc#util#once('CursorHold,CursorMoved',
\ function('lsc#highlights#updateDisplayed'))
return v:true
Expand Down

0 comments on commit 2086e80

Please sign in to comment.