From: Felipe Morales Date: Tue, 8 Jul 2014 02:20:22 +0000 (-0400) Subject: Toc: Pass errors if no atx headers are processed. X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/664ccc032cf1a97062e20128182df59d1e3526d4?ds=sidebyside;hp=-c Toc: Pass errors if no atx headers are processed. Fixes issue #102 --- 664ccc032cf1a97062e20128182df59d1e3526d4 diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index 2129203..e177bd1 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -319,7 +319,7 @@ function! s:Markdown_Toc(...) copen endif set modifiable - %s/\v^([^|]*\|){2,2} #// + %s/\v^([^|]*\|){2,2} #//e for i in range(1, line('$')) " this is the quickfix data for the current item let d = getqflist()[i-1]