diff options
author | w0rp <devw0rp@gmail.com> | 2017-03-12 21:48:40 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-03-12 21:48:40 +0000 |
commit | f25a54326054d1403047523e0e1bdf75d5cfc9c9 (patch) | |
tree | 573006686e79f4efe25a63630aafafed2c4675db /autoload | |
parent | a4ae5ca997c933fa109a850fe0d65615a3af4625 (diff) | |
download | ale-f25a54326054d1403047523e0e1bdf75d5cfc9c9.zip |
Don't save the sign ID on loclist items. This approach won't work.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/sign.vim | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/autoload/ale/sign.vim b/autoload/ale/sign.vim index 1a39ba89..99af2b17 100644 --- a/autoload/ale/sign.vim +++ b/autoload/ale/sign.vim @@ -118,20 +118,12 @@ function! ale#sign#SetSigns(buffer, loclist) abort " Add the new signs, for l:index in range(0, len(l:signlist) - 1) - let l:sign_id = l:index + g:ale_sign_offset + 1 let l:sublist = l:signlist[l:index] let l:type = !empty(filter(copy(l:sublist), 'v:val.type ==# ''E''')) \ ? 'ALEErrorSign' \ : 'ALEWarningSign' - " Save the sign IDs we are setting back on our loclist objects. - " These IDs can be used later for changing line numbers of items - " we keep, based on what Vim adjusts automatically. - for l:obj in l:sublist - let l:obj.sign_id = l:sign_id - endfor - - let l:sign_line = 'sign place ' . l:sign_id + let l:sign_line = 'sign place ' . (l:index + g:ale_sign_offset + 1) \. ' line=' . l:sublist[0].lnum \. ' name=' . l:type \. ' buffer=' . a:buffer |