fix(autocmds): resume view on current tab after _auto_resize (#4610)

This commit is contained in:
Antoine Pouille 2025-06-05 17:05:30 +02:00 committed by GitHub
parent 0ae0fe176e
commit aa51c20f34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,11 @@ function M.load_defaults()
{
group = "_auto_resize",
pattern = "*",
command = "tabdo wincmd =",
command = [[
let _auto_resize_current_tab = tabpagenr()
tabdo wincmd =
execute 'tabnext' _auto_resize_current_tab
]],
},
},
{