Patch 8.2.4991

4 views
Skip to first unread message

Bram Moolenaar

unread,
May 21, 2022, 11:35:12 AM5/21/22
to vim...@googlegroups.com

Patch 8.2.4991
Problem: No test for hwat patch 8.1.0535 fixes.
Solution: Add a test. (closes #10462)
Files: src/testdir/test_fold.vim


*** ../vim-8.2.4990/src/testdir/test_fold.vim 2022-05-20 18:25:15.809240687 +0100
--- src/testdir/test_fold.vim 2022-05-21 16:32:02.262377844 +0100
***************
*** 231,236 ****
--- 231,256 ----
set foldmethod& foldexpr&
endfunc

+ " Test for what patch 8.1.0535 fixes.
+ func Test_foldexpr_no_interrupt_addsub()
+ new
+ func! FoldFunc()
+ call setpos('.', getcurpos())
+ return '='
+ endfunc
+
+ set foldmethod=expr
+ set foldexpr=FoldFunc()
+ call setline(1, '1.2')
+
+ exe "norm! $\<C-A>"
+ call assert_equal('1.3', getline(1))
+
+ bwipe!
+ delfunc FoldFunc
+ set foldmethod& foldexpr&
+ endfunc
+
func Check_foldlevels(expected)
call assert_equal(a:expected, map(range(1, line('$')), 'foldlevel(v:val)'))
endfunc
*** ../vim-8.2.4990/src/version.c 2022-05-21 16:28:38.390926796 +0100
--- src/version.c 2022-05-21 16:33:10.878230148 +0100
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4991,
/**/

--
hundred-and-one symptoms of being an internet addict:
245. You use Real Audio to listen to a radio station from a distant
city rather than turn on your stereo system.

/// 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