From 8696c880df6d42dd4e832425f0cf9837e49f0a86 Mon Sep 17 00:00:00 2001 From: Jonny Bylsma Date: Mon, 3 Jun 2019 17:12:50 -0400 Subject: [PATCH] In get_hl(), discard returned synIDattr values of -1 --- autoload/gitgutter/highlight.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter/highlight.vim b/autoload/gitgutter/highlight.vim index e976d59..fb1dba5 100644 --- a/autoload/gitgutter/highlight.vim +++ b/autoload/gitgutter/highlight.vim @@ -133,7 +133,7 @@ endfunction function! s:get_hl(group, what, mode) abort let r = synIDattr(synIDtrans(hlID(a:group)), a:what, a:mode) - if r ==# '' + if index(['', '-1'], r) >= 0 return 'NONE' endif return r