diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-11 23:16:16 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-12 00:22:16 -0400 |
commit | 22d58ab66459c4c38f7117902b9498f81b4edfe5 (patch) | |
tree | dd781338bd334c3deae9c68fecaadb7773eb77ae /src/nvim/normal.c | |
parent | 005316ae41a03e75fac37a4892e2b8efde2f8b57 (diff) | |
download | rneovim-22d58ab66459c4c38f7117902b9498f81b4edfe5.tar.gz rneovim-22d58ab66459c4c38f7117902b9498f81b4edfe5.tar.bz2 rneovim-22d58ab66459c4c38f7117902b9498f81b4edfe5.zip |
vim-patch:8.1.0213: CTRL-W CR does not work properly in a quickfix window
Problem: CTRL-W CR does not work properly in a quickfix window.
Solution: Split the window if needed. (Jason Franklin)
https://github.com/vim/vim/commit/0a08c63da17dfd93ac2885e3f3f8a083a9b3131c
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 0a4d32d438..f99e42e2e4 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -5227,12 +5227,8 @@ static void nv_down(cmdarg_T *cap) cap->arg = FORWARD; nv_page(cap); } else if (bt_quickfix(curbuf) && cap->cmdchar == CAR) { - // In a quickfix window a <CR> jumps to the error under the cursor. - if (curwin->w_llist_ref == NULL) { - do_cmdline_cmd(".cc"); // quickfix window - } else { - do_cmdline_cmd(".ll"); // location list window - } + // Quickfix window only: view the result under the cursor. + qf_view_result(false); } else { // In the cmdline window a <CR> executes the command. if (cmdwin_type != 0 && cap->cmdchar == CAR) { |