Skip to content

Commit

Permalink
Update cspell.vim to handle highlighting of bad words
Browse files Browse the repository at this point in the history
  • Loading branch information
ryicoh committed Jan 8, 2024
1 parent efb1dd1 commit d50239f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autoload/cspell.vim
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ endif
function! s:highlight_cspell(buf) abort
let words = cspell#get_bad_words()
if len(words) ==# 0
if has_key(s:highlight_by_buf, a:buf)
let id = s:highlight_by_buf[a:buf]
try
call matchdelete(id)
catch
endtry
endif

return
endif

Expand Down

0 comments on commit d50239f

Please sign in to comment.