Skip to content

Commit 22f0560

Browse files
committed
Nvim: allow to jump to the :SignifyHunkDiff window
If you open the floating window via :SignifyHunkDiff, you can now jump to it via <c-w>w and friends. The floating window will be closed when switching back to the original window. References #300 (comment)
1 parent 6df2133 commit 22f0560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/sy/util.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function! sy#util#popup_create(hunkdiff) abort
177177
call nvim_win_set_option(s:popup_window, 'number', v:false)
178178
call nvim_win_set_option(s:popup_window, 'relativenumber', v:false)
179179
call nvim_win_set_option(s:popup_window, 'wrap', v:true)
180-
autocmd CursorMoved * ++once call sy#util#popup_close()
180+
autocmd CursorMoved <buffer> ++once call sy#util#popup_close()
181181
elseif exists('*popup_create')
182182
let s:popup_window = popup_create(map(a:hunkdiff, 'v:val[0].padding.v:val[1:]'), {
183183
\ 'line': 'cursor+1',

0 commit comments

Comments
 (0)