0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2018-07-25 22:36:52 +02:00
parent 53901442f3
commit 0a08c63da1
6 changed files with 65 additions and 23 deletions

View File

@@ -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);
}
#endif
qf_view_result(TRUE);
break;
#endif
/* CTRL-W g extended commands */
case 'g':