Mercurial > vim
comparison src/ex_getln.c @ 2839:e1c5f69de95b v7.3.193
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 19 May 2011 14:50:54 +0200 |
parents | e92a4b9b4484 |
children | b0190e93e601 |
comparison
equal
deleted
inserted
replaced
2838:649348be4bc7 | 2839:e1c5f69de95b |
---|---|
6322 else if (cmdwin_result == K_XF2) /* :qa typed */ | 6322 else if (cmdwin_result == K_XF2) /* :qa typed */ |
6323 { | 6323 { |
6324 ccline.cmdbuff = vim_strsave((char_u *)"qa"); | 6324 ccline.cmdbuff = vim_strsave((char_u *)"qa"); |
6325 cmdwin_result = CAR; | 6325 cmdwin_result = CAR; |
6326 } | 6326 } |
6327 else if (cmdwin_result == Ctrl_C) | |
6328 { | |
6329 /* :q or :close, don't execute any command | |
6330 * and don't modify the cmd window. */ | |
6331 ccline.cmdbuff = NULL; | |
6332 } | |
6327 else | 6333 else |
6328 ccline.cmdbuff = vim_strsave(ml_get_curline()); | 6334 ccline.cmdbuff = vim_strsave(ml_get_curline()); |
6329 if (ccline.cmdbuff == NULL) | 6335 if (ccline.cmdbuff == NULL) |
6330 cmdwin_result = Ctrl_C; | 6336 cmdwin_result = Ctrl_C; |
6331 else | 6337 else |