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:
committed by
Bram Moolenaar
parent
c89c91cafd
commit
4eeedc09fe
@@ -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 = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user