From: Ciro Santilli Date: Sun, 7 Sep 2014 16:01:43 +0000 (+0200) Subject: Merge pull request #103 from fmoralesc/patch-1 X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/5da9db319c1c4382c8f9f55b3bf12917f001fbd7?hp=9a6fa81456fca97d9bedbd9bcb655048c2540459 Merge pull request #103 from fmoralesc/patch-1 Toc: Pass errors if no atx headers are processed. --- diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index d4113ad..42dca90 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -319,7 +319,7 @@ function! s:Markdown_Toc(...) lopen endif set modifiable - %s/\v^([^|]*\|){2,2} #// + %s/\v^([^|]*\|){2,2} #//e for i in range(1, line('$')) " this is the location-list data for the current item let d = getloclist(0)[i-1]