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:
Justin M. Keyes
2020-01-13 00:19:20 -08:00
parent 2b8e66c6ce
commit 156c25e498
5 changed files with 105 additions and 101 deletions

View File

@@ -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;