Skip to content

Commit c206733

Browse files
committed
Fix gen_opt_test.vim
* Remove duplicate dict-key ('guifont') * Fix option values for GUI MacVim
1 parent 5178dd4 commit c206733

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/testdir/gen_opt_test.vim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let script = [
2020
let end = line('.')
2121

2222
" font name that works everywhere (hopefully)
23-
let fontname = has('win32') ? 'fixedsys' : 'fixed'
23+
let fontname = has('gui_macvim') ? '' : (has('win32') ? 'fixedsys' : 'fixed')
2424

2525
" Two lists with values: values that work and values that fail.
2626
" When not listed, "othernum" or "otherstring" is used.
@@ -130,7 +130,7 @@ let test_values = {
130130
\ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']],
131131
\ 'term': [[], []],
132132
\ 'termguicolors': [[], []],
133-
\ 'termencoding': [has('gui_gtk') ? [] : ['', 'utf-8'], ['xxx']],
133+
\ 'termencoding': [(has('gui_gtk') || has('gui_macvim')) ? [] : ['', 'utf-8'], ['xxx']],
134134
\ 'termwinsize': [['', '24x80', '0x80', '32x0', '0x0'], ['xxx', '80', '8ax9', '24x80b']],
135135
\ 'toolbar': [['', 'icons', 'text'], ['xxx']],
136136
\ 'toolbariconsize': [['', 'tiny', 'huge'], ['xxx']],
@@ -156,7 +156,6 @@ let test_values = {
156156
\
157157
\ 'blurradius': [[], [-1]],
158158
\ 'fuoptions': [[], ['xxx']],
159-
\ 'guifont': [[], ['xxx']],
160159
\ 'transparency': [[], ['-1']],
161160
\
162161
\ 'othernum': [[-1, 0, 100], ['']],
@@ -203,7 +202,7 @@ while 1
203202
endif
204203

205204
" cannot change 'termencoding' in GTK
206-
if name != 'termencoding' || !has('gui_gtk')
205+
if name != 'termencoding' || !(has('gui_gtk') || has('gui_macvim'))
207206
call add(script, 'set ' . name . '&')
208207
call add(script, 'set ' . shortname . '&')
209208
endif

0 commit comments

Comments
 (0)