1
0
forked from aniani/vim

patch 8.2.3592: Test_hlset fails when terminal has many columns

Problem:    Test_hlset fails when terminal has many columns.
Solution:   Set the number of columns to 80. (Dominique Pellé, closes #9101,
            closes #9100)
This commit is contained in:
Dominique Pelle
2021-11-13 18:44:37 +00:00
committed by Bram Moolenaar
parent 23beefed73
commit 6a950a6007
2 changed files with 7 additions and 0 deletions

View File

@@ -1046,6 +1046,9 @@ endfunc
" Test for the hlset() function
func Test_hlset()
let save_columns = &columns
let &columns = 80
let lines =<< trim END
call assert_equal(0, hlset(test_null_list()))
call assert_equal(0, hlset([]))
@@ -1150,6 +1153,8 @@ func Test_hlset()
\ 'term': attr, 'cterm': attr}], hlget('myhlg2'))
END
call CheckLegacyAndVim9Success(lines)
let &columns = save_columns
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3592,
/**/
3591,
/**/