mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Fix #2555 - Remove highlights in lowercase, etc
This commit is contained in:
@@ -279,6 +279,10 @@ Execute(Highlights should be cleared when ALE is disabled):
|
||||
AssertEqual [], GetMatchesWithoutIDs()
|
||||
|
||||
Execute(Line highlights should be set when signs are disabled):
|
||||
" This will mess with your settings, but it needs to be tested.
|
||||
" We need to match highlights case-insenstive when removing them.
|
||||
hi link aleerrorline spellbad
|
||||
|
||||
let g:ale_set_signs = 0
|
||||
|
||||
call ale#highlight#SetHighlights(bufnr(''), [
|
||||
@@ -292,8 +296,12 @@ Execute(Line highlights should be set when signs are disabled):
|
||||
\ {'group': 'ALEError', 'priority': 10, 'pos1': [1, 1, 1]},
|
||||
\ {'group': 'ALEWarning', 'priority': 10, 'pos1': [2, 1, 1]},
|
||||
\ {'group': 'ALEInfo', 'priority': 10, 'pos1': [3, 1, 1]},
|
||||
\ {'group': 'ALEErrorLine', 'priority': 10, 'pos1': [1]},
|
||||
\ {'group': 'aleerrorline', 'priority': 10, 'pos1': [1]},
|
||||
\ {'group': 'ALEWarningLine', 'priority': 10, 'pos1': [2]},
|
||||
\ {'group': 'ALEInfoLine', 'priority': 10, 'pos1': [3]},
|
||||
\ ],
|
||||
\ GetMatchesWithoutIDs()
|
||||
|
||||
" All of the highlights should be removed.
|
||||
call ale#highlight#RemoveHighlights()
|
||||
AssertEqual [], GetMatchesWithoutIDs()
|
||||
|
||||
Reference in New Issue
Block a user