This fix address an error being thrown when reopening the outline, and is a follow up to #1304.
The autocommand group outline is initialised on line 18 of outline.lua.
The clean_ctx() function deletes the outline group by id (nvim_del_augroup_by_id).
This function is called when closing the outline.
Attempting to reopen the outline causes an error to be thrown, as the autocommand group ID given has been deleted.
This fix recreates the outline group in the outline_normal_win() and outline_in_float() functions, allowing a valid ID to be used when the outline is refreshed.
This fix address an error being thrown when reopening the outline, and is a follow up to #1304. The autocommand group
outline
is initialised on line 18 ofoutline.lua
. Theclean_ctx()
function deletes theoutline
group by id (nvim_del_augroup_by_id
). This function is called when closing the outline. Attempting to reopen the outline causes an error to be thrown, as the autocommand group ID given has been deleted. This fix recreates theoutline
group in theoutline_normal_win()
andoutline_in_float()
functions, allowing a valid ID to be used when the outline is refreshed.