changeset 8441:768065c86a35 v7.4.1511

commit https://github.com/vim/vim/commit/af6e36ff16736106a1bc63bb4d01f51fdfeb29a2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 8 12:56:33 2016 +0100 patch 7.4.1511 Problem: Statusline highlighting is sometimes wrong. Solution: Check for Highlight type. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 08 Mar 2016 13:00:04 +0100
parents 4c6ad81d41fe
children d2dd8de62539
files src/buffer.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3722,7 +3722,7 @@ build_stl_str_hl(
 	    {
 		/* remove group if all items are empty */
 		for (n = groupitem[groupdepth] + 1; n < curitem; n++)
-		    if (item[n].type == Normal)
+		    if (item[n].type == Normal || item[n].type == Highlight)
 			break;
 		if (n == curitem)
 		{
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1511,
+/**/
     1510,
 /**/
     1509,