]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0617: Cursor moves beyond first line of folded end of buffer v9.1.0617
authorLuuk van Baal <luukvbaal@gmail.com>
Thu, 25 Jul 2024 19:24:32 +0000 (21:24 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 25 Jul 2024 19:24:32 +0000 (21:24 +0200)
commitdc373d456b5919ed2b8f83e8642c115f646ca93d
treebe15488e5f9d377c39cdc71bcc57e4d734ee95ed
parenteb4b903c9b238ebcc1d14cfcb207129b4931a33d
patch 9.1.0617: Cursor moves beyond first line of folded end of buffer

Problem:  Cursor moves beyond start of a folded range at the end of a buffer.
Solution: Move cursor to start of fold when going beyond end of buffer.
          Check that cursor moved to detect FAIL in outer cursor function.
          (Luuk van Baal)

closes: #15344

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/edit.c
src/testdir/test_fold.vim
src/version.c