mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.2330
Problem: Coverity complains about not checking curwin to be NULL. Solution: Use firstwin to avoid the warning.
This commit is contained in:
@@ -772,7 +772,7 @@ buf_freeall(buf_T *buf, int flags)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_SYN_HL
|
#ifdef FEAT_SYN_HL
|
||||||
/* Remove any ownsyntax, unless exiting. */
|
/* Remove any ownsyntax, unless exiting. */
|
||||||
if (firstwin != NULL && curwin->w_buffer == buf)
|
if (curwin != NULL && curwin->w_buffer == buf)
|
||||||
reset_synblock(curwin);
|
reset_synblock(curwin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -788,7 +788,7 @@ buf_freeall(buf_T *buf, int flags)
|
|||||||
clearFolding(win);
|
clearFolding(win);
|
||||||
}
|
}
|
||||||
# else
|
# else
|
||||||
if (curwin->w_buffer == buf)
|
if (curwin != NULL && curwin->w_buffer == buf)
|
||||||
clearFolding(curwin);
|
clearFolding(curwin);
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2330,
|
||||||
/**/
|
/**/
|
||||||
2329,
|
2329,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user