Skip to content

Commit

Permalink
fix close on notification close bug
Browse files Browse the repository at this point in the history
that was as well present for floating windows and terminal
  • Loading branch information
michaelb committed Oct 6, 2021
1 parent 951dd21 commit f2751e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/sniprun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ function M.setup_autocommands()

vim.cmd("augroup sniprun_fw_close")
vim.cmd("autocmd!")
vim.cmd("autocmd CursorMoved,BufWinLeave * call Sniprun_fw_close_wrapper()")
-- vim.cmd("autocmd CursorMoved,BufWinLeave * call Sniprun_fw_close_wrapper()")
vim.cmd("autocmd CursorMoved * call Sniprun_fw_close_wrapper()")
vim.cmd("augroup END")

vim.cmd("function! Sniprun_clear_vt_on_leave()\n lua require'sniprun.display'.clear_virtual_text()\n endfunction")
Expand All @@ -153,7 +154,8 @@ function M.setup_autocommands()
vim.cmd("function! Sniprun_close_term_on_leave()\n lua require'sniprun.display'.term_close()\n endfunction")
vim.cmd("augroup sniprun_close_term")
vim.cmd("autocmd!")
vim.cmd("autocmd VimLeave,QuitPre,BufWinLeave * call Sniprun_close_term_on_leave()")
-- vim.cmd("autocmd VimLeave,QuitPre,BufWinLeave * call Sniprun_close_term_on_leave()")
vim.cmd("autocmd VimLeave,QuitPre * call Sniprun_close_term_on_leave()")
vim.cmd("augroup END")
end

Expand Down

0 comments on commit f2751e7

Please sign in to comment.