]> granicus.if.org Git - vim/commitdiff
patch 8.0.0159: crash on startup when updating tabline v8.0.0159
authorBram Moolenaar <Bram@vim.org>
Sun, 8 Jan 2017 19:00:04 +0000 (20:00 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 8 Jan 2017 19:00:04 +0000 (20:00 +0100)
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.

src/ex_getln.c
src/screen.c
src/version.c

index 5d098cca3fbfe1cf07d14649c2b46995d65884e3..cf99ae2a838de59487b2e348b5b6d23d15dbeab1 100644 (file)
@@ -772,7 +772,9 @@ getcmdline(
                /*
                 * Open a window to edit the command line (and history).
                 */
+               save_cmdline(&save_ccline);
                c = ex_window();
+               restore_cmdline(&save_ccline);
                some_key_typed = TRUE;
            }
        }
index ee61a01aea9c4add8e90ab70b01aab3a09c3a782..016e7ee3e9a83ab9d75fe7e8f8bce59871e7c9ff 100644 (file)
@@ -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
index 38be7db00e99603e280f6201a99029345d9c8af0..f1a36da0ce3507ee005c70e612efba49083a5722 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    159,
 /**/
     158,
 /**/