patch 8.0.0919: cursor color isn't set on startup v8.0.0919
authorBram Moolenaar <Bram@vim.org>
Sat, 12 Aug 2017 18:11:53 +0000 (20:11 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Aug 2017 18:11:53 +0000 (20:11 +0200)
Problem:    Cursor color isn't set on startup.
Solution:   Initialize showing_mode to invalid value.

src/term.c
src/version.c

index 80545ad81b3ee69b3a164aa355d7434058eea082..d72f58c32df492b67c0f76c4b0a63cee9ebc8327 100644 (file)
@@ -3670,7 +3670,7 @@ cursor_off(void)
     void
 term_cursor_mode(int forced)
 {
-    static int showing_mode = NORMAL;
+    static int showing_mode = -1;
     char_u *p;
 
     /* Only do something when redrawing the screen and we can restore the
index c3918a2dd5fdcb7596f077c73cded7e1fa21edef..fa404b63db5350d91b11013215cf05aa20e97e61 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    919,
 /**/
     918,
 /**/