1
0
forked from aniani/vim

updated for version 7.3.193

Problem:    In the command line window ":close" doesn't work properly. (Tony
            Mechelynck)
Solution:   Use Ctrl_C instead of K_IGNORE for cmdwin_result. (Jean-Rene
            David)
This commit is contained in:
Bram Moolenaar 2011-05-19 14:50:54 +02:00
parent 0df1102698
commit 9bd1a7ea28
3 changed files with 9 additions and 1 deletions

View File

@ -6472,7 +6472,7 @@ ex_close(eap)
{ {
# ifdef FEAT_CMDWIN # ifdef FEAT_CMDWIN
if (cmdwin_type != 0) if (cmdwin_type != 0)
cmdwin_result = K_IGNORE; cmdwin_result = Ctrl_C;
else else
# endif # endif
if (!text_locked() if (!text_locked()

View File

@ -6324,6 +6324,12 @@ ex_window()
ccline.cmdbuff = vim_strsave((char_u *)"qa"); ccline.cmdbuff = vim_strsave((char_u *)"qa");
cmdwin_result = CAR; cmdwin_result = CAR;
} }
else if (cmdwin_result == Ctrl_C)
{
/* :q or :close, don't execute any command
* and don't modify the cmd window. */
ccline.cmdbuff = NULL;
}
else else
ccline.cmdbuff = vim_strsave(ml_get_curline()); ccline.cmdbuff = vim_strsave(ml_get_curline());
if (ccline.cmdbuff == NULL) if (ccline.cmdbuff == NULL)

View File

@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
193,
/**/ /**/
192, 192,
/**/ /**/