]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1834 v7.4.1834
authorBram Moolenaar <Bram@vim.org>
Tue, 24 May 2016 08:51:30 +0000 (10:51 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 24 May 2016 08:51:30 +0000 (10:51 +0200)
Problem:    Possible crash when conceal is active.
Solution:   Check for the screen to be valid when redrawing a line.

src/screen.c
src/version.c

index a72bffa536e5226dc8e935760d9c6c02522d7b5d..2e425cba4c5d14030992725e221a2d12b32aca5f 100644 (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)
     {
index eaa3e8ec91de631ab1dd7a249261027ff583aa7e..417a3aa57e169e792a593362afb15226df865839 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1834,
 /**/
     1833,
 /**/