Skip to content

Commit

Permalink
Merge pull request #102 from michaelb/dev
Browse files Browse the repository at this point in the history
fix close on notification close bug
  • Loading branch information
michaelb authored Oct 6, 2021
2 parents e1202a7 + f2751e7 commit 9f25862
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 9f25862

Please sign in to comment.