mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:00: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 = str2nr(matchstr(matchstr(&guifont, ':h\d\+'), '\d\+'))
|
||||||
let font_size += 1
|
let font_size += 1
|
||||||
let &guifont = substitute(&guifont, ':h\d\+', ':h' . font_size, '')
|
let &guifont = substitute(&guifont, ':h\d\+', ':h' . font_size, '')
|
||||||
|
sleep 100m
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:reduce_font() abort
|
function! s:reduce_font() abort
|
||||||
let font_size = str2nr(matchstr(matchstr(&guifont, ':h\d\+'), '\d\+'))
|
let font_size = str2nr(matchstr(matchstr(&guifont, ':h\d\+'), '\d\+'))
|
||||||
let font_size -= 1
|
let font_size -= 1
|
||||||
let &guifont = substitute(&guifont, ':h\d\+', ':h' . font_size, '')
|
let &guifont = substitute(&guifont, ':h\d\+', ':h' . font_size, '')
|
||||||
|
sleep 100m
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user