mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.0.0782: using freed memory in quickfix code
Problem: Using freed memory in quickfix code. (Dominique Pelle) Solution: Handle a help window differently. (Yegappan Lakshmanan)
This commit is contained in:
@@ -6314,7 +6314,7 @@ ex_help(exarg_T *eap)
|
||||
* Re-use an existing help window or open a new one.
|
||||
* Always open a new one for ":tab help".
|
||||
*/
|
||||
if (!curwin->w_buffer->b_help
|
||||
if (!bt_help(curwin->w_buffer)
|
||||
#ifdef FEAT_WINDOWS
|
||||
|| cmdmod.tab != 0
|
||||
#endif
|
||||
@@ -6325,7 +6325,7 @@ ex_help(exarg_T *eap)
|
||||
wp = NULL;
|
||||
else
|
||||
FOR_ALL_WINDOWS(wp)
|
||||
if (wp->w_buffer != NULL && wp->w_buffer->b_help)
|
||||
if (bt_help(wp->w_buffer))
|
||||
break;
|
||||
if (wp != NULL && wp->w_buffer->b_nwindows > 0)
|
||||
win_enter(wp, TRUE);
|
||||
@@ -6425,7 +6425,7 @@ ex_helpclose(exarg_T *eap UNUSED)
|
||||
|
||||
FOR_ALL_WINDOWS(win)
|
||||
{
|
||||
if (win->w_buffer->b_help)
|
||||
if (bt_help(win->w_buffer))
|
||||
{
|
||||
win_close(win, FALSE);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user