]> granicus.if.org Git - vim/commitdiff
patch 8.0.0871: status line for a terminal window always has "[+]". v8.0.0871
authorBram Moolenaar <Bram@vim.org>
Sat, 5 Aug 2017 16:19:55 +0000 (18:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 Aug 2017 16:19:55 +0000 (18:19 +0200)
Problem:    The status line for a terminal window always has "[+]".
Solution:   Do make the status line include "[+]" for a terminal window.

src/screen.c
src/version.c

index 77d0e4f9b96b3501be6da79cfc9022f08c94b847..fb7c3cebacb8c7f83c1e16a6f52c7fbed0bad151 100644 (file)
@@ -6893,7 +6893,11 @@ win_redr_status(win_T *wp)
            len += (int)STRLEN(p + len);
        }
 #endif
-       if (bufIsChanged(wp->w_buffer))
+       if (bufIsChanged(wp->w_buffer)
+#ifdef FEAT_TERMINAL
+               && !bt_terminal(wp->w_buffer)
+#endif
+               )
        {
            STRCPY(p + len, "[+]");
            len += 3;
index 195be511ede08f893ce6ec56f560f920632f61bc..758ea20598f594f80168e8303b3accab0f30aac2 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    871,
 /**/
     870,
 /**/