X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c45a152fcb95075120ad7f99fad08b6b1b720299..e6961592519b5e89307aeae07fa648599aa6a490:/ftplugin/markdown.vim?ds=sidebyside 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