From 664ccc032cf1a97062e20128182df59d1e3526d4 Mon Sep 17 00:00:00 2001 From: Felipe Morales Date: Mon, 7 Jul 2014 22:20:22 -0400 Subject: [PATCH] Toc: Pass errors if no atx headers are processed. Fixes issue #102 --- ftplugin/mkd.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.39.2