From 587742d89bc370de3919c5d9aacc5c24214cee7a Mon Sep 17 00:00:00 2001 From: Greg Hurrell Date: Tue, 4 Dec 2018 14:13:59 +0100 Subject: [PATCH] Remove unnecessary s:prefix from From the `synIDattr` help: {mode} can be "gui", "cterm" or "term", to get the attributes for that mode. When {mode} is omitted, or an invalid value is used, the attributes for the currently active highlighting are used (GUI, cterm or term). So, we don't need the explicit s:prefix here; behavior should be unchanged. --- autoload/pinnacle.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/pinnacle.vim b/autoload/pinnacle.vim index 15ffba9..a495695 100644 --- a/autoload/pinnacle.vim +++ b/autoload/pinnacle.vim @@ -198,7 +198,7 @@ function! pinnacle#extract_fg(group) abort endfunction function! pinnacle#extract_component(group, component) abort - return synIDattr(synIDtrans(hlID(a:group)), a:component, s:prefix) + return synIDattr(synIDtrans(hlID(a:group)), a:component) endfunction function! pinnacle#highlight(highlight) abort -- 2.37.1