diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-19 14:28:51 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-19 14:28:51 +0100 |
commit | 5c839c482573263b4d3cb2bc4bc1719d49e14e22 (patch) | |
tree | 8d4bdea46296f79dacd035becd13167e89c1b112 /test/test_setting_loclist_from_another_buffer.vader | |
parent | 9c6e25d8d8a8d519e828c31acfc7b1309fd0aaa1 (diff) | |
download | ale-5c839c482573263b4d3cb2bc4bc1719d49e14e22.zip |
#653 Collect items for quickfix from all buffers, and de-duplicate them. Set filename items in quickfix and loclist.
Diffstat (limited to 'test/test_setting_loclist_from_another_buffer.vader')
-rw-r--r-- | test/test_setting_loclist_from_another_buffer.vader | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test_setting_loclist_from_another_buffer.vader b/test/test_setting_loclist_from_another_buffer.vader index ae53de1f..10a44cce 100644 --- a/test/test_setting_loclist_from_another_buffer.vader +++ b/test/test_setting_loclist_from_another_buffer.vader @@ -1,7 +1,11 @@ Before: Save g:ale_buffer_info - let g:ale_buffer_info = {} + let g:ale_buffer_info = { + \ bufnr(''): { + \ 'loclist': [{'bufnr': bufnr(''), 'lnum': 4, 'col': 1, 'text': 'foo'}] + \ }, + \} let g:original_buffer = bufnr('%') noautocmd new @@ -12,7 +16,10 @@ After: unlet! g:original_buffer Execute(Errors should be set in the loclist for the original buffer, not the new one): - call ale#list#SetLists(g:original_buffer, [{'lnum': 4, 'text': 'foo'}]) + call ale#list#SetLists( + \ g:original_buffer, + \ g:ale_buffer_info[(g:original_buffer)].loclist, + \ ) AssertEqual [], getloclist(0) AssertEqual 1, len(getloclist(bufwinid(g:original_buffer))) |