From c963ec31a0c293d629e40cb082d4bfb1651def49 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 24 Jul 2022 20:08:01 +0100 Subject: patch 9.0.0064: confusing error when using "q:" in command line window Problem: Confusing error when using "q:" in command line window. Solution: Check for the situation and give a better error message. (closes #10756) --- src/normal.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/normal.c') 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); } -- cgit v1.2.1