mirror of
https://github.com/neovim/neovim.git
synced 2025-11-11 04:55:33 +00:00
fix: add group in autocmd api #19412
regression from PR #19283: custom close autocommands for the preview window were not cleaned up after the window was closed.
This commit is contained in:
@@ -1395,6 +1395,7 @@ local function close_preview_autocmd(events, winnr, bufnrs)
|
|||||||
|
|
||||||
if #events > 0 then
|
if #events > 0 then
|
||||||
api.nvim_create_autocmd(events, {
|
api.nvim_create_autocmd(events, {
|
||||||
|
group = augroup,
|
||||||
buffer = bufnrs[2],
|
buffer = bufnrs[2],
|
||||||
callback = function()
|
callback = function()
|
||||||
close_preview_window(winnr)
|
close_preview_window(winnr)
|
||||||
|
|||||||
Reference in New Issue
Block a user