mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
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:
@@ -5227,12 +5227,8 @@ static void nv_down(cmdarg_T *cap)
|
||||
cap->arg = FORWARD;
|
||||
nv_page(cap);
|
||||
} else if (bt_quickfix(curbuf) && cap->cmdchar == CAR) {
|
||||
// In a quickfix window a <CR> jumps to the error under the cursor.
|
||||
if (curwin->w_llist_ref == NULL) {
|
||||
do_cmdline_cmd(".cc"); // quickfix window
|
||||
} else {
|
||||
do_cmdline_cmd(".ll"); // location list window
|
||||
}
|
||||
// Quickfix window only: view the result under the cursor.
|
||||
qf_view_result(false);
|
||||
} else {
|
||||
// In the cmdline window a <CR> executes the command.
|
||||
if (cmdwin_type != 0 && cap->cmdchar == CAR) {
|
||||
|
Reference in New Issue
Block a user