Only update guifont if font and size not empty (#21)

Close #20
This commit is contained in:
wzy
2020-03-04 18:02:42 +08:00
committed by GitHub
parent a98f5e5d7e
commit 66dc16eb8d

View File

@@ -164,7 +164,12 @@ function! thematic#gui#setFont(th) abort
let l:fs = thematic#getThemeValue(a:th, 'font-size', -1)
" TODO support list of typefaces with most desired as first in list
let l:gf = s:composeGuifontString(l:tf, l:fs)
if l:tf == '' || l:fs == '-1'
let l:gf = ''
else
let l:gf = s:composeGuifontString(l:tf, l:fs)
endif
if l:gf != ''
call s:setGuifont(l:gf)
endif