mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
fix(guifont): always set guifont
This commit is contained in:
parent
5d7bd47ccf
commit
cd1bab21fc
@ -1549,12 +1549,15 @@ function! SpaceVim#end() abort
|
|||||||
if g:spacevim_hiddenfileinfo == 1 && has('patch-7.4.1570')
|
if g:spacevim_hiddenfileinfo == 1 && has('patch-7.4.1570')
|
||||||
set shortmess+=F
|
set shortmess+=F
|
||||||
endif
|
endif
|
||||||
if has('gui_running') && !empty(g:spacevim_guifont)
|
if !empty(g:spacevim_guifont)
|
||||||
if has('gui_vimr')
|
try
|
||||||
" VimR has removed support for guifont
|
|
||||||
else
|
|
||||||
let &guifont = g:spacevim_guifont
|
let &guifont = g:spacevim_guifont
|
||||||
endif
|
catch
|
||||||
|
call SpaceVim#logger#error('failed to set guifont to: '
|
||||||
|
\ . g:spacevim_guifont)
|
||||||
|
call SpaceVim#logger#error(' exception: ' . v:exception)
|
||||||
|
call SpaceVim#logger#error(' throwpoint: ' . v:throwpoint)
|
||||||
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !has('nvim-0.2.0') && !has('nvim')
|
if !has('nvim-0.2.0') && !has('nvim')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user