diff options
author | Rom Grk <romgrk.cc@gmail.com> | 2021-04-17 17:33:59 -0400 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2022-02-10 15:26:40 +0000 |
commit | 85ae04dbfd405343b10c400d40e95334a44cc978 (patch) | |
tree | fb88cdc7e9f6e51537440da389bcef4e6c0a3893 /src/nvim/quickfix.c | |
parent | a73360a09a54c186f2df6e167a8be1f1a1d8c62a (diff) | |
download | rneovim-85ae04dbfd405343b10c400d40e95334a44cc978.tar.gz rneovim-85ae04dbfd405343b10c400d40e95334a44cc978.tar.bz2 rneovim-85ae04dbfd405343b10c400d40e95334a44cc978.zip |
fix: close floating windows when calling win_close()
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index b12f407460..7e29aed51b 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3022,7 +3022,7 @@ static void qf_jump_newwin(qf_info_T *qi, int dir, int errornr, int forceit, boo if (retval != OK) { if (opened_window) { - win_close(curwin, true); // Close opened window + win_close(curwin, true, false); // Close opened window } if (qf_ptr != NULL && qf_ptr->qf_fnum != 0) { // Couldn't open file, so put index back where it was. This could @@ -3577,7 +3577,7 @@ void ex_cclose(exarg_T *eap) // Find existing quickfix window and close it. win = qf_find_win(qi); if (win != NULL) { - win_close(win, false); + win_close(win, false, false); } } @@ -3651,7 +3651,7 @@ static int qf_open_new_cwindow(qf_info_T *qi, int height) // win_split, so add a check to ensure that the win is still here if (IS_LL_STACK(qi) && !win_valid(win)) { // close the window that was supposed to be for the loclist - win_close(curwin, false); + win_close(curwin, false, false); return FAIL; } @@ -5767,7 +5767,7 @@ static void wipe_dummy_buffer(buf_T *buf, char_u *dirname_start) if (firstwin->w_next != NULL) { for (win_T *wp = firstwin; wp != NULL; wp = wp->w_next) { if (wp->w_buffer == buf) { - if (win_close(wp, false) == OK) { + if (win_close(wp, false, false) == OK) { did_one = true; } break; |