To: vim_dev@googlegroups.com Subject: Patch 8.2.3592 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///