diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-12-08 20:29:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-08 20:29:25 +0800 |
commit | 84d9f4f9f9efbfc72630f01f5f837c50fd7020d4 (patch) | |
tree | ef9d812e629f79abbe87e80748886d74d59e380f | |
parent | 4bfdd1ee9dee15c4b066412335f8cafbc3208f60 (diff) | |
download | rneovim-84d9f4f9f9efbfc72630f01f5f837c50fd7020d4.tar.gz rneovim-84d9f4f9f9efbfc72630f01f5f837c50fd7020d4.tar.bz2 rneovim-84d9f4f9f9efbfc72630f01f5f837c50fd7020d4.zip |
vim-patch:9.1.0915: GVim: default font size a bit too small (#31516)
Problem: GVim: default font size a bit too small
Solution: increase guifont size to 12 pt on GTK builds
of gVim (matveyt).
fixes: vim/vim#16172
closes: vim/vim#16178
https://github.com/vim/vim/commit/ad3b6a3340a4ab02c1e5bc4a6d6a5fb858b671d3
Co-authored-by: matveyt <matthewtarasov@yandex.ru>
-rw-r--r-- | test/old/testdir/runtest.vim | 4 | ||||
-rw-r--r-- | test/old/testdir/test_highlight.vim | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim index 058635c332..3d210695c4 100644 --- a/test/old/testdir/runtest.vim +++ b/test/old/testdir/runtest.vim @@ -55,6 +55,10 @@ silent! endwhile " In the GUI we can always change the screen size. if has('gui_running') + if has('gui_gtk') + " to keep screendump size unchanged + set guifont=Monospace\ 10 + endif set columns=80 lines=25 endif diff --git a/test/old/testdir/test_highlight.vim b/test/old/testdir/test_highlight.vim index 0a64c63d30..56c7a9656f 100644 --- a/test/old/testdir/test_highlight.vim +++ b/test/old/testdir/test_highlight.vim @@ -785,8 +785,8 @@ func Test_1_highlight_Normalgroup_exists() if !has('gui_running') call assert_match('hi Normal\s*clear', hlNormal) elseif has('gui_gtk2') || has('gui_gnome') || has('gui_gtk3') - " expect is DEFAULT_FONT of gui_gtk_x11.c - call assert_match('hi Normal\s*font=Monospace 10', hlNormal) + " expect is DEFAULT_FONT of gui_gtk_x11.c (any size) + call assert_match('hi Normal\s*font=Monospace\>', hlNormal) elseif has('gui_motif') " expect is DEFAULT_FONT of gui_x11.c call assert_match('hi Normal\s*font=7x13', hlNormal) |