Skip to content

Commit

Permalink
Fix handling of frontmatter option (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
walterl committed Nov 24, 2022
1 parent 7231fa4 commit aa7d685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions after/ftplugin/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if get(g:, 'vim_markdown_folding_style_pythonic', 0)
let b:fenced_block = 0
endif
" else, if we're caring about front matter
elseif g:vim_markdown_frontmatter == 1
elseif get(g:, 'vim_markdown_frontmatter', 0) == 1
" if we're in front matter and not on line 1
if b:front_matter == 1 && a:lnum > 2
let l0 = getline(a:lnum-1)
Expand Down Expand Up @@ -111,7 +111,7 @@ else " vim_markdown_folding_style_pythonic == 0
elseif b:fenced_block == 1
let b:fenced_block = 0
endif
elseif g:vim_markdown_frontmatter == 1
elseif get(g:, 'vim_markdown_frontmatter', 0) == 1
if b:front_matter == 1
if l0 ==# '---'
let b:front_matter = 0
Expand Down

0 comments on commit aa7d685

Please sign in to comment.