0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 7.4.1834

Problem:    Possible crash when conceal is active.
Solution:   Check for the screen to be valid when redrawing a line.
This commit is contained in:
Bram Moolenaar 2016-05-24 10:51:30 +02:00
parent 2ff8b64679
commit 908be43879
2 changed files with 6 additions and 0 deletions

View File

@ -801,6 +801,10 @@ update_single_line(win_T *wp, linenr_T lnum)
int row;
int j;
/* Don't do anything if the screen structures are (not yet) valid. */
if (!screen_valid(TRUE))
return;
if (lnum >= wp->w_topline && lnum < wp->w_botline
&& foldedCount(wp, lnum, &win_foldinfo) == 0)
{

View File

@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1834,
/**/
1833,
/**/