diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-05-19 14:50:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-05-19 14:50:54 +0200 |
commit | 9bd1a7ea28d102cca24901d6f16378441fa5245c (patch) | |
tree | 73443ccfee7acc42d25f01b3c36df52a002f9a98 /src/ex_getln.c | |
parent | 0df110269804d128a1a4b00849b0b82bc71548a7 (diff) |
updated for version 7.3.193v7.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)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index ed45f5716f..6dc5c35010 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -6324,6 +6324,12 @@ ex_window() ccline.cmdbuff = vim_strsave((char_u *)"qa"); 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 ccline.cmdbuff = vim_strsave(ml_get_curline()); if (ccline.cmdbuff == NULL) |