diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-31 10:27:29 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-31 10:27:35 +0100 |
commit | fd49f7df90f8454df2f5d9fbc07b065807b1bb4b (patch) | |
tree | 95bff1417d176a3b3669c0434610a9efd109e6fd /test/test_highlight_placement.vader | |
parent | e72dc1acd58b6de742ca3fbc69a197549e7c18dd (diff) | |
download | ale-fd49f7df90f8454df2f5d9fbc07b065807b1bb4b.zip |
#604 Change match_id to match_id_list, for future highlights spanning more than 8 lines
Diffstat (limited to 'test/test_highlight_placement.vader')
-rw-r--r-- | test/test_highlight_placement.vader | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_highlight_placement.vader b/test/test_highlight_placement.vader index 454f6209..a728fce0 100644 --- a/test/test_highlight_placement.vader +++ b/test/test_highlight_placement.vader @@ -55,15 +55,15 @@ Execute(Highlights should be set when a linter runs): \ ], \ getmatches() - AssertEqual [4, 5, 6], map(copy(g:ale_buffer_info[bufnr('')].loclist), 'v:val.match_id') + AssertEqual [[4], [5], [6]], map(copy(g:ale_buffer_info[bufnr('')].loclist), 'v:val.match_id_list') Execute(Existing highlights should be kept): call matchaddpos('ALEError', [[1, 2, 1]], 10, 347) call matchaddpos('ALEWarning', [[2, 2, 1]], 10, 348) call ale#highlight#SetHighlights(bufnr('%'), [ - \ {'bufnr': bufnr('%'), 'match_id': 347, 'type': 'E', 'lnum': 1, 'col': 2}, - \ {'bufnr': bufnr('%'), 'match_id': 348, 'type': 'W', 'lnum': 2, 'col': 2}, + \ {'bufnr': bufnr('%'), 'match_id_list': [347], 'type': 'E', 'lnum': 1, 'col': 2}, + \ {'bufnr': bufnr('%'), 'match_id_list': [348], 'type': 'W', 'lnum': 2, 'col': 2}, \ {'bufnr': bufnr('%'), 'type': 'E', 'lnum': 3, 'col': 2}, \ {'bufnr': bufnr('%'), 'type': 'W', 'lnum': 4, 'col': 1}, \]) |