Mercurial > vim
diff src/arglist.c @ 23744:fc031340f8f9 v8.2.2413
patch 8.2.2413: crash when using :all while using a cmdline window
Commit: https://github.com/vim/vim/commit/bb4b93ed85726c3921596ca267f531c8c94d819a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 26 21:35:08 2021 +0100
patch 8.2.2413: crash when using :all while using a cmdline window
Problem: Crash when using :all while using a cmdline window. (Zdenek Dohnal)
Solution: Disallow :all from the cmdline window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 Jan 2021 21:45:04 +0100 |
parents | a84e7abb0c92 |
children | bb2afcad503b |
line wrap: on
line diff
--- a/src/arglist.c +++ b/src/arglist.c @@ -884,6 +884,13 @@ do_arg_all( win_T *new_curwin = NULL; tabpage_T *new_curtab = NULL; +#ifdef FEAT_CMDWIN + if (cmdwin_type != 0) + { + emsg(_(e_cmdwin)); + return; + } +#endif if (ARGCOUNT <= 0) { // Don't give an error message. We don't want it when the ":all"