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/window.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/window.c')
-rw-r--r-- | src/nvim/window.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index e6b19cf88d..1cf5d7fd92 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -443,17 +443,11 @@ wingotofile: curwin->w_set_curswant = TRUE; break; + // Quickfix window only: view the result under the cursor in a new split. case K_KENTER: case CAR: - /* - * In a quickfix window a <CR> jumps to the error under the - * cursor in a new window. - */ if (bt_quickfix(curbuf)) { - sprintf(cbuf, "split +%" PRId64 "%s", - (int64_t)curwin->w_cursor.lnum, - (curwin->w_llist_ref == NULL) ? "cc" : "ll"); - do_cmdline_cmd(cbuf); + qf_view_result(true); } break; |