diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-25 22:36:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-25 22:36:52 +0200 |
commit | 0a08c63da17dfd93ac2885e3f3f8a083a9b3131c (patch) | |
tree | 9d557c0e8454c09c889e6ee033b178118bc9aa7e /src/normal.c | |
parent | 53901442f37a59e5495165f91db5574c0b43ab04 (diff) | |
download | vim-git-0a08c63da17dfd93ac2885e3f3f8a083a9b3131c.tar.gz |
patch 8.1.0213: CTRL-W CR does not work properly in a quickfix windowv8.1.0213
Problem: CTRL-W CR does not work properly in a quickfix window.
Solution: Split the window if needed. (Jason Franklin)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/normal.c b/src/normal.c index 4d51c3320..4e36d5607 100644 --- a/src/normal.c +++ b/src/normal.c @@ -6202,18 +6202,12 @@ nv_down(cmdarg_T *cap) cap->arg = FORWARD; nv_page(cap); } - else #if defined(FEAT_QUICKFIX) - /* In a quickfix window a <CR> jumps to the error under the cursor. */ - if (bt_quickfix(curbuf) && cap->cmdchar == CAR) - { - if (curwin->w_llist_ref == NULL) - do_cmdline_cmd((char_u *)".cc"); /* quickfix window */ - else - do_cmdline_cmd((char_u *)".ll"); /* location list window */ - } - else + /* Quickfix window only: view the result under the cursor. */ + else if (bt_quickfix(curbuf) && cap->cmdchar == CAR) + qf_view_result(FALSE); #endif + else { #ifdef FEAT_CMDWIN /* In the cmdline window a <CR> executes the command. */ |