diff src/testdir/test_fold.vim @ 29320:a74398c432a4 v9.0.0003

patch 9.0.0003: functions are global while they could be local Commit: https://github.com/vim/vim/commit/ee47eaceaa148e07b566ff420f9a3c2edde2fa34 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Jun 29 12:55:36 2022 +0100 patch 9.0.0003: functions are global while they could be local Problem: Functions are global while they could be local. Solution: Add "static". Add a few tests. (Yegappan Lakshmanan, closes #10612)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Jun 2022 14:00:03 +0200
parents 65946c949965
children 13b02c1ea0f7
line wrap: on
line diff
--- a/src/testdir/test_fold.vim
+++ b/src/testdir/test_fold.vim
@@ -1476,6 +1476,8 @@ func Test_fold_split()
   call assert_equal([0, 1, 1, 2, 2], range(1, 5)->map('foldlevel(v:val)'))
   call append(2, 'line 2.5')
   call assert_equal([0, 1, 0, 1, 2, 2], range(1, 6)->map('foldlevel(v:val)'))
+  3d
+  call assert_equal([0, 1, 1, 2, 2], range(1, 5)->map('foldlevel(v:val)'))
   bw!
 endfunc