File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -160,22 +160,11 @@ M.open_fullscreen_float = function(bufnr)
160160 end ,
161161 })
162162
163- local augroup_name = " OverseerFloatResize_" .. winid
164- vim .api .nvim_create_augroup (augroup_name , { clear = true })
165- vim .api .nvim_create_autocmd (" WinClosed" , {
166- desc = " Clean up auto commands when window is closed" ,
167- group = augroup_name ,
168- callback = function (args )
169- if args .match == tostring (winid ) then
170- pcall (vim .api .nvim_del_augroup_by_name , augroup_name )
171- end
172- end ,
173- })
174163 vim .api .nvim_create_autocmd (" VimResized" , {
175164 desc = " Resize floating window on VimResized" ,
176- group = augroup_name ,
177165 callback = function ()
178- pcall (vim .api .nvim_win_set_config , winid , get_dimensions ())
166+ local win_exists = pcall (vim .api .nvim_win_set_config , winid , get_dimensions ())
167+ return not win_exists
179168 end ,
180169 })
181170
You can’t perform that action at this time.
0 commit comments