From: Bram Moolenaar Date: Tue, 24 May 2016 08:51:30 +0000 (+0200) Subject: patch 7.4.1834 X-Git-Tag: v7.4.1834 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=908be438794619f10ef7fa25e24e5893b2ae0189;p=thirdparty%2Fvim.git patch 7.4.1834 Problem: Possible crash when conceal is active. Solution: Check for the screen to be valid when redrawing a line. --- diff --git a/src/screen.c b/src/screen.c index a72bffa536..2e425cba4c 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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) { diff --git a/src/version.c b/src/version.c index eaa3e8ec91..417a3aa57e 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1834, /**/ 1833, /**/