summaryrefslogtreecommitdiffstats
path: root/src/arglist.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-26 21:35:08 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-26 21:35:08 +0100
commitbb4b93ed85726c3921596ca267f531c8c94d819a (patch)
tree6051a56c41cb1482ff005812e6f07187193be6cf /src/arglist.c
parentce0370d9e67df80c62ff033aa8ca2dbe86841de9 (diff)
patch 8.2.2413: crash when using :all while using a cmdline windowv8.2.2413
Problem: Crash when using :all while using a cmdline window. (Zdenek Dohnal) Solution: Disallow :all from the cmdline window.
Diffstat (limited to 'src/arglist.c')
-rw-r--r--src/arglist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arglist.c b/src/arglist.c
index 4e971fd4bb..06d94280b0 100644
--- 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"