summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-07-24 20:08:01 +0100
committerBram Moolenaar <Bram@vim.org>2022-07-24 20:08:01 +0100
commitc963ec31a0c293d629e40cb082d4bfb1651def49 (patch)
treef93897f6bfe81dd5692f5f06b23fedb1881368c9 /src/normal.c
parentd61efa50f8f5b9d9dcbc136705cc33874f0fdcb3 (diff)
downloadvim-git-c963ec31a0c293d629e40cb082d4bfb1651def49.tar.gz
patch 9.0.0064: confusing error when using "q:" in command line windowv9.0.0064
Problem: Confusing error when using "q:" in command line window. Solution: Check for the situation and give a better error message. (closes #10756)
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 72ebcd538..932d72320 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -7147,6 +7147,11 @@ nv_record(cmdarg_T *cap)
#ifdef FEAT_CMDWIN
if (cap->nchar == ':' || cap->nchar == '/' || cap->nchar == '?')
{
+ if (cmdwin_type != 0)
+ {
+ emsg(_(e_cmdline_window_already_open));
+ return;
+ }
stuffcharReadbuff(cap->nchar);
stuffcharReadbuff(K_CMDWIN);
}