mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:30:05 +08:00
fix(ui): update screen after font changed
This commit is contained in:
parent
214ca3c3e2
commit
6e6fc71e81
@ -675,10 +675,12 @@ function! s:increase_font() abort
|
||||
let font_size = str2nr(matchstr(matchstr(&guifont, ':h\d\+'), '\d\+'))
|
||||
let font_size += 1
|
||||
let &guifont = substitute(&guifont, ':h\d\+', ':h' . font_size, '')
|
||||
sleep 100m
|
||||
endfunction
|
||||
|
||||
function! s:reduce_font() abort
|
||||
let font_size = str2nr(matchstr(matchstr(&guifont, ':h\d\+'), '\d\+'))
|
||||
let font_size -= 1
|
||||
let &guifont = substitute(&guifont, ':h\d\+', ':h' . font_size, '')
|
||||
sleep 100m
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user