From 25f3c5633587f9c0c76a153c93d556bc857ed3b4 Mon Sep 17 00:00:00 2001 From: Jonny Bylsma Date: Mon, 3 Jun 2019 17:50:50 -0400 Subject: [PATCH] Make conditional style consistent with codebase --- 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 fb1dba5..c1362fd 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 index(['', '-1'], r) >= 0 + if empty(r) || r == -1 return 'NONE' endif return r