Skip to content

Instantly share code, notes, and snippets.

@stephenprater
Last active February 18, 2016 21:48
Show Gist options
  • Save stephenprater/f8c03a769a8816d9885c to your computer and use it in GitHub Desktop.
Save stephenprater/f8c03a769a8816d9885c to your computer and use it in GitHub Desktop.
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 9806623..5593371 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3010,7 +3010,7 @@ int build_stl_str_hl(
&& item[groupitem[groupdepth]].minwid == 0) {
bool has_normal_items = false;
for (long n = groupitem[groupdepth] + 1; n < curitem; n++) {
- if (item[n].type == Normal) {
+ if (item[n].type == Normal || item[n].type == Highlight) {
has_normal_items = true;
break;
}
diff --git src/nvim/buffer.c src/nvim/buffer.c
index 9806623..5593371 100644
--- src/nvim/buffer.c
+++ src/nvim/buffer.c
@@ -3010,7 +3010,7 @@ int build_stl_str_hl(
&& item[groupitem[groupdepth]].minwid == 0) {
bool has_normal_items = false;
for (long n = groupitem[groupdepth] + 1; n < curitem; n++) {
- if (item[n].type == Normal) {
+ if (item[n].type == Normal || item[n].type == Highlight) {
has_normal_items = true;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment