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:
committed by
Bram Moolenaar
parent
23beefed73
commit
6a950a6007
@@ -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
|
||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3592,
|
||||
/**/
|
||||
3591,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user