]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1537: helptoc: still some issues when markdown code blocks v9.1.1537
authorChristian Brabandt <cb@256bit.org>
Thu, 10 Jul 2025 18:44:51 +0000 (20:44 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 10 Jul 2025 18:44:51 +0000 (20:44 +0200)
commitea528a94825280ae35328a3f819845d5643cf351
tree142e0174b9e5743160725febc93231360dc66b82
parent48d7f5b5a38b3d046f092adca33d047c2bd39eb1
patch 9.1.1537: helptoc: still some issues when markdown code blocks

Problem:  helptoc: still some issues when parsing markdown code blocks
          (VimWei)
Solution: assign nextline to curline before starting the next loop
          iteration; when processing fenced code blocks, flip the
          skip_fence variable, update the test to be more comprehensive

related: https://github.com/vim/vim/issues/17699#issuecomment-3055603968
closes: #17716

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/pack/dist/opt/helptoc/autoload/helptoc.vim
src/testdir/dumps/Test_helptoc_markdown_01.dump
src/testdir/test_plugin_helptoc.vim
src/version.c