mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
WinClosed: sort auevents.lua; improve tests
- test: reduce verbosity, condense redundancy, improve readability
- auevents.lua: keep events sorted by name. ref afd1d412fa
This commit is contained in:
@@ -2695,8 +2695,7 @@ static void do_autocmd_winclosed(win_T *win)
|
||||
return;
|
||||
}
|
||||
recursive = true;
|
||||
|
||||
char_u winid[10];
|
||||
char_u winid[NUMBUFLEN];
|
||||
vim_snprintf((char *)winid, sizeof(winid), "%i", win->handle);
|
||||
apply_autocmds(EVENT_WINCLOSED, winid, winid, false, win->w_buffer);
|
||||
recursive = false;
|
||||
|
Reference in New Issue
Block a user