From c206733e6fd36cc2e8d6b10d88f9991ce7d32eef Mon Sep 17 00:00:00 2001 From: ichizok Date: Thu, 23 Aug 2018 17:03:31 +0900 Subject: [PATCH] Fix gen_opt_test.vim * Remove duplicate dict-key ('guifont') * Fix option values for GUI MacVim --- src/testdir/gen_opt_test.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/testdir/gen_opt_test.vim b/src/testdir/gen_opt_test.vim index 2667bd93a6..23c4bf6ef7 100644 --- a/src/testdir/gen_opt_test.vim +++ b/src/testdir/gen_opt_test.vim @@ -20,7 +20,7 @@ let script = [ let end = line('.') " font name that works everywhere (hopefully) -let fontname = has('win32') ? 'fixedsys' : 'fixed' +let fontname = has('gui_macvim') ? '' : (has('win32') ? 'fixedsys' : 'fixed') " Two lists with values: values that work and values that fail. " When not listed, "othernum" or "otherstring" is used. @@ -130,7 +130,7 @@ let test_values = { \ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']], \ 'term': [[], []], \ 'termguicolors': [[], []], - \ 'termencoding': [has('gui_gtk') ? [] : ['', 'utf-8'], ['xxx']], + \ 'termencoding': [(has('gui_gtk') || has('gui_macvim')) ? [] : ['', 'utf-8'], ['xxx']], \ 'termwinsize': [['', '24x80', '0x80', '32x0', '0x0'], ['xxx', '80', '8ax9', '24x80b']], \ 'toolbar': [['', 'icons', 'text'], ['xxx']], \ 'toolbariconsize': [['', 'tiny', 'huge'], ['xxx']], @@ -156,7 +156,6 @@ let test_values = { \ \ 'blurradius': [[], [-1]], \ 'fuoptions': [[], ['xxx']], - \ 'guifont': [[], ['xxx']], \ 'transparency': [[], ['-1']], \ \ 'othernum': [[-1, 0, 100], ['']], @@ -203,7 +202,7 @@ while 1 endif " cannot change 'termencoding' in GTK - if name != 'termencoding' || !has('gui_gtk') + if name != 'termencoding' || !(has('gui_gtk') || has('gui_macvim')) call add(script, 'set ' . name . '&') call add(script, 'set ' . shortname . '&') endif