Mercurial > vim
diff src/window.c @ 14397:19d99d9e670c v8.1.0213
patch 8.1.0213: CTRL-W CR does not work properly in a quickfix window
commit https://github.com/vim/vim/commit/0a08c63da17dfd93ac2885e3f3f8a083a9b3131c
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 25 22:36:52 2018 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 25 Jul 2018 22:45:04 +0200 |
parents | a9d94f10ecef |
children | d33220d3bc27 |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -520,23 +520,14 @@ wingotofile: break; #endif +/* Quickfix window only: view the result under the cursor in a new split. */ +#if defined(FEAT_QUICKFIX) case K_KENTER: case CAR: -#if defined(FEAT_QUICKFIX) - /* - * In a quickfix window a <CR> jumps to the error under the - * cursor in a new window. - */ if (bt_quickfix(curbuf)) - { - sprintf((char *)cbuf, "split +%ld%s", - (long)curwin->w_cursor.lnum, - (curwin->w_llist_ref == NULL) ? "cc" : "ll"); - do_cmdline_cmd(cbuf); - } + qf_view_result(TRUE); + break; #endif - break; - /* CTRL-W g extended commands */ case 'g':