summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorDaniel Harding <dharding@living180.net>2023-03-08 17:47:58 +0300
committerGitHub <noreply@github.com>2023-03-08 14:47:58 +0000
commit007c5b1152f84b96d7887aac76e2d2be899b6156 (patch)
tree55053bc76f4af1e8428fbac4c7391b675d09d025 /autoload
parent16f5a1915b88ea50d809fc9d722f5b2b553f55b0 (diff)
downloadale-007c5b1152f84b96d7887aac76e2d2be899b6156.zip
Clear virtualtext no matter how enabled (#4475)
When toggling ALE off, clear the virtualtext even when g:ale_virtualtext_cursor is 'all'.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/toggle.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/toggle.vim b/autoload/ale/toggle.vim
index abc53daa..8b38e5ad 100644
--- a/autoload/ale/toggle.vim
+++ b/autoload/ale/toggle.vim
@@ -14,7 +14,7 @@ function! s:DisablePostamble() abort
call ale#highlight#UpdateHighlights()
endif
- if g:ale_virtualtext_cursor is# 'current' || g:ale_virtualtext_cursor == 1
+ if g:ale_virtualtext_cursor isnot# 'disabled' && g:ale_virtualtext_cursor != 0
call ale#virtualtext#Clear(bufnr(''))
endif
endfunction