X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c696287bba831e76846d1db316c7ce3158577fda..e7f78bbd1ed2def74fc4c1574762d641cf6ff1a2:/ftplugin/markdown.vim diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index ae81c80..752aee4 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -347,9 +347,9 @@ function! s:Toc(...) vertical lopen " auto-fit toc window when possible to shrink it if (&columns/2) > l:header_max_len && g:vim_markdown_toc_autofit == 1 - let &winwidth = (l:header_max_len + 1) + execute 'vertical resize ' . (l:header_max_len + 1) else - let &winwidth = (&columns/2) + execute 'vertical resize ' . (&columns/2) endif elseif l:window_type ==# 'tab' tab lopen