X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0a534a29f490adcd0612ff10a53b04109385404c..899ef40d3c84192e3c6c0b512a40d9e42a8bb3dd:/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