X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/25878961d0b526615df6ea7beb0d28cf75528205..7c0578d6e84384c280a714b99d7ec08c3d45cda9:/ftplugin/markdown.vim?ds=inline diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 5db57d8..c2fff46 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -357,11 +357,11 @@ function! s:Toc(...) endif endif endfor + call setloclist(0, l:header_list) if len(l:header_list) == 0 echom "Toc: No headers." return endif - call setloclist(0, l:header_list) if l:window_type ==# 'horizontal' lopen