diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-02-11 10:37:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 10:37:13 +0100 |
commit | 2db0a52074ab6b822edc1fa04eca399d4e727784 (patch) | |
tree | a3af2f1826457c5895dd446748f36855fb16167a /src/nvim/quickfix.c | |
parent | 851252f79ddaaca5456b287342cd36130c76ff38 (diff) | |
parent | 85ae04dbfd405343b10c400d40e95334a44cc978 (diff) | |
download | rneovim-2db0a52074ab6b822edc1fa04eca399d4e727784.tar.gz rneovim-2db0a52074ab6b822edc1fa04eca399d4e727784.tar.bz2 rneovim-2db0a52074ab6b822edc1fa04eca399d4e727784.zip |
Merge pull request #17360 from lewis6991/fix-window-close
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; |