diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-06-12 08:21:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 08:21:31 +0200 |
commit | babcf641efcbe7e9007285ef9c639da8639e7144 (patch) | |
tree | dd781338bd334c3deae9c68fecaadb7773eb77ae /src/nvim/window.c | |
parent | f8d0e41b2864da53a7763a71cf27bb643aca7a0f (diff) | |
parent | 22d58ab66459c4c38f7117902b9498f81b4edfe5 (diff) | |
download | rneovim-babcf641efcbe7e9007285ef9c639da8639e7144.tar.gz rneovim-babcf641efcbe7e9007285ef9c639da8639e7144.tar.bz2 rneovim-babcf641efcbe7e9007285ef9c639da8639e7144.zip |
Merge #10192 from janlazo/vim-8.0.1689
vim-patch:8.0.1689,8.1.0213
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; |