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)
0a08c63da1
This commit is contained in:
Jan Edmund Lazo
2019-06-11 23:16:16 -04:00
parent 005316ae41
commit 22d58ab664
4 changed files with 55 additions and 14 deletions

View File

@@ -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;