aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorNicolas Dumazet <ndumazet@google.com>2016-03-08 17:01:47 +0100
committerNicolas Dumazet <ndumazet@google.com>2016-03-08 17:11:27 +0100
commit7bd570cd9a510b93e031a84bd6ae45fc38cfaadf (patch)
tree43673b0a823b5922f007233c480a65a1c3feac1e /src/nvim/buffer.c
parent890ce792af102abe37f24f9674b5924b79fbfa27 (diff)
downloadrneovim-7bd570cd9a510b93e031a84bd6ae45fc38cfaadf.tar.gz
rneovim-7bd570cd9a510b93e031a84bd6ae45fc38cfaadf.tar.bz2
rneovim-7bd570cd9a510b93e031a84bd6ae45fc38cfaadf.zip
vim-patch:7.4.1511
Problem: Statusline highlighting is sometimes wrong. Solution: Check for Highlight type. (Christian Brabandt) https://github.com/vim/vim/commit/af6e36ff16736106a1bc63bb4d01f51fdfeb29a2
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 62ab7495da..8f5ae3445e 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3014,7 +3014,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;
}