]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0672: marker folds may get corrupted on undo v9.1.0672
authorChristian Brabandt <cb@256bit.org>
Sun, 11 Aug 2024 18:12:41 +0000 (20:12 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 11 Aug 2024 18:12:41 +0000 (20:12 +0200)
commit8d02e5cf961b06da5bc490ac5972bcbc252c4793
tree64bd0e437d2b8b5aa73d8e41ed65249cbc057896
parentfb3f9699362f8d51c3b48fcaea1eb2ed16c81454
patch 9.1.0672: marker folds may get corrupted on undo

Problem:  marker folds may get corrupted on undo (Yousef Mohammed)
Solution: when adjusting folds, make sure that line1 is the lower limit
          and line2 is the upper line limit. In particular, line2 should
          not be able to get smaller than line1.

fixes: #15455
closes: #15466

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/fold.c
src/testdir/test_fold.vim
src/version.c