]> git.wincent.com - pinnacle.git/commitdiff
Remove unnecessary s:prefix from
authorGreg Hurrell <greg@hurrell.net>
Tue, 4 Dec 2018 13:13:59 +0000 (14:13 +0100)
committerGreg Hurrell <greg@hurrell.net>
Tue, 4 Dec 2018 13:13:59 +0000 (14:13 +0100)
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

index 15ffba96203db2f734059920d2716b4a9328c492..a495695df20f397e6b0a1a4343ad9f05d84513c6 100644 (file)
@@ -198,7 +198,7 @@ function! pinnacle#extract_fg(group) abort
 endfunction
 
 function! pinnacle#extract_component(group, component) 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
 endfunction
 
 function! pinnacle#highlight(highlight) abort