Patch 8.2.3592

5 views
Skip to first unread message

Bram Moolenaar

unread,
Nov 13, 2021, 1:45:56 PM11/13/21
to vim...@googlegroups.com

Patch 8.2.3592
Problem: Test_hlset fails when terminal has many columns.
Solution: Set the number of columns to 80. (Dominique Pellé, closes #9101,
closes #9100)
Files: src/testdir/test_highlight.vim


*** ../vim-8.2.3591/src/testdir/test_highlight.vim 2021-11-13 10:49:26.833952428 +0000
--- src/testdir/test_highlight.vim 2021-11-13 17:25:28.468055181 +0000
***************
*** 1046,1051 ****
--- 1046,1054 ----

" 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,1155 ****
--- 1153,1160 ----
\ 'term': attr, 'cterm': attr}], hlget('myhlg2'))
END
call CheckLegacyAndVim9Success(lines)
+
+ let &columns = save_columns
endfunc

" vim: shiftwidth=2 sts=2 expandtab
*** ../vim-8.2.3591/src/version.c 2021-11-13 12:38:45.538835898 +0000
--- src/version.c 2021-11-13 17:27:10.687699088 +0000
***************
*** 759,760 ****
--- 759,762 ----
{ /* Add new patch number below this line */
+ /**/
+ 3592,
/**/

--
I still remember when I gave up Smoking, Drinking and Sex. It was the
most *horrifying* hour of my life!

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages