diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-11 11:17:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 11:17:22 -0400 |
commit | b9776ff5b757ed051acb0ae5c6a1464cec333698 (patch) | |
tree | e65a4a70bea29731e3979780c35e0a3767509c6c /src/nvim/window.c | |
parent | f7cc3ae0b7b8ce67294c00729d278362ad60a4f0 (diff) | |
parent | 2f9252304cc001e7de0f445ef382f3bb79a4382c (diff) | |
download | rneovim-b9776ff5b757ed051acb0ae5c6a1464cec333698.tar.gz rneovim-b9776ff5b757ed051acb0ae5c6a1464cec333698.tar.bz2 rneovim-b9776ff5b757ed051acb0ae5c6a1464cec333698.zip |
Merge pull request #13083 from janlazo/vim-8.1.1281
vim-patch:8.1.{523,720,877,988,1015,1036},8.2.{1101,1820,1823,1829,1830,1831}
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index e53570edd8..7d08336c25 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -2578,9 +2578,14 @@ int win_close(win_T *win, bool free_buf) return OK; } - /* Free independent synblock before the buffer is freed. */ - if (win->w_buffer != NULL) + // Free independent synblock before the buffer is freed. + if (win->w_buffer != NULL) { reset_synblock(win); + } + // When the quickfix/location list window is closed, unlist the buffer. + if (win->w_buffer != NULL && bt_quickfix(win->w_buffer)) { + win->w_buffer->b_p_bl = false; + } /* * Close the link to the buffer. |