changeset 26119:0db507389fdb v8.2.3592

patch 8.2.3592: Test_hlset fails when terminal has many columns Commit: https://github.com/vim/vim/commit/6a950a6007f27d9d0ce32ef8dcaf5c9d0f1b5aab Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sat Nov 13 18:44:37 2021 +0000 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 https://github.com/vim/vim/issues/9101, closes #9100)
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Nov 2021 19:45:02 +0100
parents 83ae5b517920
children d9a515e54c2b
files src/testdir/test_highlight.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_highlight.vim
+++ b/src/testdir/test_highlight.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3592,
+/**/
     3591,
 /**/
     3590,