mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-26 15:43:16 +08:00
#376 Use the window ID for a given buffer for setting the loclist
This commit is contained in:
1 parent
1c3f0b1e19
commit
ad49846a48
5 files changed
+29
-14
No files matched your search
@@ -0,0 +1,13 @@
|
||||
Before:
|
||||
let g:original_buffer = bufnr('%')
|
||||
new
|
||||
|
||||
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'}])
|
||||
|
||||
AssertEqual [], getloclist(0)
|
||||
AssertEqual 1, len(getloclist(bufwinid(g:original_buffer)))
|
||||
AssertEqual 'foo', getloclist(bufwinid(g:original_buffer))[0].text
|
||||
Reference in new issue
Block a user