Skip to content

Commit fafae61

Browse files
committed
fix for neovim
neovim doesn't set "gui_running" anymore
1 parent 40c6514 commit fafae61

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
@@ -570,7 +570,7 @@ if g:pandoc#syntax#style#emphases == 1
570570
if !exists('s:hi_tail')
571571
for s:i in ["fg", "bg"]
572572
let s:tmp_val = synIDattr(synIDtrans(hlID("String")), s:i)
573-
let s:tmp_ui = has('gui_running') ? 'gui' : 'cterm'
573+
let s:tmp_ui = has('gui_running') || has('nvim') ? 'gui' : 'cterm'
574574
if !empty(s:tmp_val) && s:tmp_val != -1
575575
exe 'let s:'.s:i . ' = "'.s:tmp_ui.s:i.'='.s:tmp_val.'"'
576576
else

0 commit comments

Comments
 (0)