]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(markdown): Fix folding of code blocks
authorTim Pope <code@tpope.net>
Thu, 28 Dec 2023 17:50:18 +0000 (12:50 -0500)
committerChristian Brabandt <cb@256bit.org>
Thu, 28 Dec 2023 22:17:54 +0000 (23:17 +0100)
runtime/ftplugin/markdown.vim

index 2b963f139d3cbb72a33d8fbe883143489a9bf668..022dd0d601de1cbab5cf9585770e7d024ca9bb15 100644 (file)
@@ -1,7 +1,7 @@
 " Vim filetype plugin
 " Language:     Markdown
 " Maintainer:   Tim Pope <https://github.com/tpope/vim-markdown>
-" Last Change:  2022 Oct 13
+" Last Change:  2023 Dec 28
 
 if exists("b:did_ftplugin")
   finish
@@ -35,7 +35,7 @@ if !exists("g:no_plugin_maps") && !exists("g:no_markdown_maps")
 endif
 
 function! s:NotCodeBlock(lnum) abort
-  return synIDattr(synID(a:lnum, 1, 1), 'name') !=# 'markdownCode'
+  return synIDattr(synID(a:lnum, 1, 1), 'name') !=# 'markdownCodeBlock'
 endfunction
 
 function! MarkdownFold() abort