1
0
forked from aniani/vim

patch 8.2.3524: GUI: ligatures are not used

Problem:    GUI: ligatures are not used.
Solution:   Add the 'guiligatures' option. (Dusan Popovic, closes #8933)
This commit is contained in:
Dusan Popovic
2021-10-16 20:52:05 +01:00
committed by Bram Moolenaar
parent c89c91cafd
commit 4eeedc09fe
12 changed files with 239 additions and 14 deletions

View File

@@ -567,6 +567,31 @@ func Test_set_guifontwide()
endif
endfunc
func Test_set_guiligatures()
let skipped = ''
if !g:x11_based_gui
let skipped = g:not_supported . 'guiligatures'
else
if has('gui_gtk') || has('gui_gtk2') || has('gui_gnome') || has('gui_gtk3')
" Try correct value
set guiligatures=<>=ab
call assert_equal("<>=ab", &guiligatures)
" Try to throw error
try
set guiligatures=<>=šab
call assert_report("'set guiligatures=<>=šab should have failed")
catch
call assert_exception('E1243:')
endtry
endif
endif
if !empty(skipped)
throw skipped
endif
endfunc
func Test_set_guiheadroom()
let skipped = ''