Don't let verbose info mess with operation
authorGreg Hurrell <greg@hurrell.net>
Wed, 4 May 2016 01:44:39 +0000 (18:44 -0700)
committerGreg Hurrell <greg@hurrell.net>
Wed, 4 May 2016 01:44:39 +0000 (18:44 -0700)
`'verbose'` > 0 will lead us to capture output like:

  Comment xxx term=bold,italic cterm=italic ctermfg=8 gui=italic guifg=#65737e
  Last set from ~/code/wincent/roles/dotfiles/files/.vim/after/plugin/color.vim

which will lead to `E416: missing equal sign` errors when we try to use the
captured output.

So, force `'verbose'` to 0 for the duration of the capture.

autoload/pinnacle.vim

index 7d86ad2f57f7ac5dca35f2784a3f1a54d277ff7d..565bda9ea4a76c2d5819ed329c95f1a9385d2639 100644 (file)
@@ -146,7 +146,7 @@ endfunction
 
 " Gets the current value of a highlight group.
 function! pinnacle#capture_highlight(group) abort
-  return pinnacle#capture_line('silent highlight ' . a:group)
+  return pinnacle#capture_line('0verbose silent highlight ' . a:group)
 endfunction
 
 " Extracts a highlight string from a group, recursively traversing linked