diff src/screen.c @ 10538:c7f671dfd735 v8.0.0159

patch 8.0.0159: crash on startup when updating tabline commit https://github.com/vim/vim/commit/c695cec4698b41d7b9555efdd47dda9b1945d3ae Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 8 20:00:04 2017 +0100 patch 8.0.0159: crash on startup when updating tabline Problem: Using a NULL pointer when using feedkeys() to trigger drawing a tabline. Solution: Skip drawing a tabline if TabPageIdxs is NULL. (Dominique Pelle) Also fix recursing into getcmdline() from the cmd window.
author Christian Brabandt <cb@256bit.org>
date Sun, 08 Jan 2017 20:15:03 +0100
parents 34b50194f82d
children 206ab11fa76e
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -3650,7 +3650,7 @@ win_line(
 		if (fdc > 0)
 		{
 		    /* Draw the 'foldcolumn'.  Allocate a buffer, "extra" may
-		     * already be in used. */
+		     * already be in use. */
 		    p_extra_free = alloc(12 + 1);
 
 		    if (p_extra_free != NULL)
@@ -10344,6 +10344,8 @@ draw_tabline(void)
 #endif
 					    );
 
+    if (ScreenLines == NULL)
+	return;
     redraw_tabline = FALSE;
 
 #ifdef FEAT_GUI_TABLINE