vim-patch:8.2.0996: using "aucmdwin" in win_gettype() is not ideal

Problem:    Using "aucmdwin" in win_gettype() is not ideal.
Solution:   Rename to "autocmd".
40a019f157
This commit is contained in:
Jan Edmund Lazo 2020-11-25 02:43:23 -05:00
parent 9b2efe6b7d
commit 8d7fa8962b
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
3 changed files with 3 additions and 3 deletions

View File

@ -9280,7 +9280,7 @@ win_getid([{win} [, {tab}]]) *win_getid()*
win_gettype([{nr}]) *win_gettype()*
Return the type of the window:
"aucmdwin" autocommand window. Temporary window
"autocmd" autocommand window. Temporary window
used to execute autocommands.
"popup" popup window |popup|
"preview" preview window |preview-window|

View File

@ -11007,7 +11007,7 @@ static void f_win_gettype(typval_T *argvars, typval_T *rettv, FunPtr fptr)
}
}
if (wp == aucmd_win) {
rettv->vval.v_string = vim_strsave((char_u *)"aucmdwin");
rettv->vval.v_string = vim_strsave((char_u *)"autocmd");
} else if (wp->w_p_pvw) {
rettv->vval.v_string = vim_strsave((char_u *)"preview");
} else if (wp->w_floating) {

View File

@ -1947,7 +1947,7 @@ func Test_autocmd_window()
augroup END
doautoall BufEnter
call assert_equal([['one.txt', 'aucmdwin'], ['two.txt', '']], g:blist)
call assert_equal([['one.txt', 'autocmd'], ['two.txt', '']], g:blist)
augroup aucmd_win_test
au!