We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8de3e84 commit 4b041ceCopy full SHA for 4b041ce
autoload/sy.vim
@@ -71,8 +71,7 @@ function! sy#stop(...) abort
71
let bufnr = bufnr('')
72
if empty(getbufvar(a:0 ? a:1 : bufnr, 'sy')) | return | endif
73
call sy#sign#remove_all_signs(bufnr)
74
- " TODO: Can't unset autocmds in another buffer.
75
- autocmd! signify * <buffer>
+ execute printf('autocmd! signify * <buffer=%d>', bufnr)
76
call setbufvar(bufnr, 'sy', {})
77
endfunction
78
@@ -102,7 +101,7 @@ endfunction
102
101
" #set_autocmds {{{1
103
function! sy#set_autocmds() abort
104
augroup signify
105
- autocmd!
+ autocmd! * <buffer>
106
107
autocmd BufEnter <buffer> call sy#start()
108
autocmd WinEnter <buffer> call sy#start()
0 commit comments