mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
9b2efe6b7d
commit
8d7fa8962b
@ -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|
|
||||
|
@ -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) {
|
||||
|
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user