X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c45a152fcb95075120ad7f99fad08b6b1b720299..3696e02d661de558d068d3b88d6fb1bc81c90f3c:/ftplugin/markdown.vim?ds=inline diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index f68e54c..7eb5784 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -330,7 +330,7 @@ function! s:Toc(...) let d.text = substitute(d.text, '\v[ ]*#*$', '', '') " setex headers else - let l:next_line = getbufline(bufname(d.bufnr), d.lnum+1) + let l:next_line = getbufline(d.bufnr, d.lnum+1) if match(l:next_line, "=") > -1 let l:level = 0 elseif match(l:next_line, "-") > -1