Skip to content

Commit ba83968

Browse files
committed
Dodge lint warnings: pre-initialize variables
1 parent b4ac913 commit ba83968

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

syntax/pandoc.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ if g:pandoc#syntax#style#emphases == 1
645645
hi pandocStrongInEmphasis gui=bold,italic cterm=bold,italic
646646
hi pandocEmphasisInStrong gui=bold,italic cterm=bold,italic
647647
if !exists('s:hi_tail')
648+
let s:fg = '' " Vint can't figure ou these get set dynamically
649+
let s:bg = '' " so initialize them manually first
648650
for s:i in ['fg', 'bg']
649651
let s:tmp_val = synIDattr(synIDtrans(hlID('String')), s:i)
650652
let s:tmp_ui = has('gui_running') || (has('termguicolors') && &termguicolors) ? 'gui' : 'cterm'

0 commit comments

Comments
 (0)