Patch 8.2.0996
Problem: Using "aucmdwin" in win_gettype() is not ideal.
Solution: Rename to "autocmd".
Files: runtime/doc/eval.txt, src/evalwindow.c,
src/testdir/test_autocmd.vim
*** ../vim-8.2.0995/runtime/doc/eval.txt 2020-06-16 22:42:01.069306175 +0200
--- runtime/doc/eval.txt 2020-06-17 21:31:07.459682516 +0200
***************
*** 10851,10857 ****
win_gettype([{nr}]) *win_gettype()*
Return the type of the window:
! "aucmdwin" autocommand window. Temporary window
used to execute autocommands.
"popup" popup window |popup|
"preview" preview window |preview-window|
--- 10866,10872 ----
win_gettype([{nr}]) *win_gettype()*
Return the type of the window:
! "autocmd" autocommand window. Temporary window
used to execute autocommands.
"popup" popup window |popup|
"preview" preview window |preview-window|
*** ../vim-8.2.0995/src/evalwindow.c 2020-06-16 22:42:01.069306175 +0200
--- src/evalwindow.c 2020-06-17 21:32:12.595484992 +0200
***************
*** 859,865 ****
}
}
if (wp == aucmd_win)
! rettv->vval.v_string = vim_strsave((char_u *)"aucmdwin");
#if defined(FEAT_QUICKFIX)
else if (wp->w_p_pvw)
rettv->vval.v_string = vim_strsave((char_u *)"preview");
--- 859,865 ----
}
}
if (wp == aucmd_win)
! rettv->vval.v_string = vim_strsave((char_u *)"autocmd");
#if defined(FEAT_QUICKFIX)
else if (wp->w_p_pvw)
rettv->vval.v_string = vim_strsave((char_u *)"preview");
*** ../vim-8.2.0995/src/testdir/test_autocmd.vim 2020-06-16 22:42:01.069306175 +0200
--- src/testdir/test_autocmd.vim 2020-06-17 21:32:35.083417034 +0200
***************
*** 2592,2598 ****
augroup END
doautoall BufEnter
! call assert_equal([['one.txt', 'aucmdwin'], ['two.txt', '']], g:blist)
augroup aucmd_win_test
au!
--- 2592,2598 ----
augroup END
doautoall BufEnter
! call assert_equal([['one.txt', 'autocmd'], ['two.txt', '']], g:blist)
augroup aucmd_win_test
au!
*** ../vim-8.2.0995/src/version.c 2020-06-17 20:30:41.122168593 +0200
--- src/version.c 2020-06-17 21:32:54.811357507 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 996,
/**/
--
LAUNCELOT: I am, sir. I am a Knight of King Arthur.
FATHER: 'Mm ... very nice castle, Camelot ... very good pig country....
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///