From 6e6fc71e81b0174faa2c2522b12d4f825520c79f Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 29 May 2022 13:29:26 +0800 Subject: [PATCH] fix(ui): update screen after font changed --- autoload/SpaceVim/layers/ui.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/SpaceVim/layers/ui.vim b/autoload/SpaceVim/layers/ui.vim index 6bc2387bb..d90218ce6 100644 --- a/autoload/SpaceVim/layers/ui.vim +++ b/autoload/SpaceVim/layers/ui.vim @@ -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