forked from aniani/vim
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)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user