aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/arglist.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-05 21:14:03 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-05 22:40:23 +0800
commitc64acad4e2d4c8c05404f05dd149da9d34960a3d (patch)
tree057fac97f222647d14fa2b0c6187e9f489d4c09d /src/nvim/arglist.c
parent1f2ded459a6f26635bf013da4100b3dedb777f73 (diff)
downloadrneovim-c64acad4e2d4c8c05404f05dd149da9d34960a3d.tar.gz
rneovim-c64acad4e2d4c8c05404f05dd149da9d34960a3d.tar.bz2
rneovim-c64acad4e2d4c8c05404f05dd149da9d34960a3d.zip
vim-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. https://github.com/vim/vim/commit/bb4b93ed85726c3921596ca267f531c8c94d819a Use test from lastest Vim instead.
Diffstat (limited to 'src/nvim/arglist.c')
-rw-r--r--src/nvim/arglist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/arglist.c b/src/nvim/arglist.c
index 02e3a99aab..f22ef10e3f 100644
--- a/src/nvim/arglist.c
+++ b/src/nvim/arglist.c
@@ -782,6 +782,10 @@ static void do_arg_all(int count, int forceit, int keep_tabs)
assert(firstwin != NULL); // satisfy coverity
+ if (cmdwin_type != 0) {
+ emsg(_(e_cmdwin));
+ return;
+ }
if (ARGCOUNT <= 0) {
// Don't give an error message. We don't want it when the ":all" command is in the .vimrc.
return;