Skip to content

Commit eaf2507

Browse files
authored
Merge pull request #183 from jez/master
Check 'termguicolors' instead of 'nvim'
2 parents a35e9ce + 691b8ab commit eaf2507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/pandoc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ if g:pandoc#syntax#style#emphases == 1
584584
if !exists('s:hi_tail')
585585
for s:i in ["fg", "bg"]
586586
let s:tmp_val = synIDattr(synIDtrans(hlID("String")), s:i)
587-
let s:tmp_ui = has('gui_running') || has('nvim') ? 'gui' : 'cterm'
587+
let s:tmp_ui = has('gui_running') || (has('termguicolors') && &termguicolors) ? 'gui' : 'cterm'
588588
if !empty(s:tmp_val) && s:tmp_val != -1
589589
exe 'let s:'.s:i . ' = "'.s:tmp_ui.s:i.'='.s:tmp_val.'"'
590590
else

0 commit comments

Comments
 (0)