Mercurial > vim
comparison src/window.c @ 16019:096b8ccd855e v8.1.1015
patch 8.1.1015: quickfix buffer shows up in list, can't get buffer number
commit https://github.com/vim/vim/commit/647e24ba3dbf7ff448aa471b1a659a18267ae056
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 17 16:39:46 2019 +0100
patch 8.1.1015: quickfix buffer shows up in list, can't get buffer number
Problem: Quickfix buffer shows up in list, can't get buffer number.
Solution: Make the quickfix buffer unlisted when the quickfix window is
closed. get the quickfix buffer number with getqflist().
(Yegappan Lakshmanan, closes #4113)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Mar 2019 16:45:11 +0100 |
parents | 7fbdceabad64 |
children | a3284dd27de6 |
comparison
equal
deleted
inserted
replaced
16018:aa208549a80b | 16019:096b8ccd855e |
---|---|
2380 return FAIL; | 2380 return FAIL; |
2381 #endif | 2381 #endif |
2382 } | 2382 } |
2383 | 2383 |
2384 #ifdef FEAT_GUI | 2384 #ifdef FEAT_GUI |
2385 /* Avoid trouble with scrollbars that are going to be deleted in | 2385 // Avoid trouble with scrollbars that are going to be deleted in |
2386 * win_free(). */ | 2386 // win_free(). |
2387 if (gui.in_use) | 2387 if (gui.in_use) |
2388 out_flush(); | 2388 out_flush(); |
2389 #endif | 2389 #endif |
2390 | 2390 |
2391 #ifdef FEAT_SYN_HL | 2391 #ifdef FEAT_SYN_HL |
2392 /* Free independent synblock before the buffer is freed. */ | 2392 // Free independent synblock before the buffer is freed. |
2393 if (win->w_buffer != NULL) | 2393 if (win->w_buffer != NULL) |
2394 reset_synblock(win); | 2394 reset_synblock(win); |
2395 #endif | |
2396 | |
2397 #ifdef FEAT_QUICKFIX | |
2398 // When the quickfix/location list window is closed, unlist the buffer. | |
2399 if (win->w_buffer != NULL && bt_quickfix(win->w_buffer)) | |
2400 win->w_buffer->b_p_bl = FALSE; | |
2395 #endif | 2401 #endif |
2396 | 2402 |
2397 /* | 2403 /* |
2398 * Close the link to the buffer. | 2404 * Close the link to the buffer. |
2399 */ | 2405 */ |