1
0
forked from aniani/vim

patch 8.2.3631: "syntax enable" does not work properly in Vim9 context

Problem:    "syntax enable" does not work properly in Vim9 context.
Solution:   Also handle Vim9 context. (closes #9161)
This commit is contained in:
Bram Moolenaar
2021-11-20 19:50:59 +00:00
parent d85fccdfed
commit c8a9fe541d
3 changed files with 12 additions and 2 deletions

View File

@@ -1581,5 +1581,13 @@ def Test_previewpopup()
set previewpopup&
enddef
def Test_syntax_enable_clear()
syntax clear
syntax enable
highlight clear String
assert_equal(true, hlget('String')->get(0, {})->get('default', false))
syntax clear
enddef
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker