X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/70e12b926f24f5eed93d9e35db515dd1887b994d..e7f78bbd1ed2def74fc4c1574762d641cf6ff1a2:/ftplugin/markdown.vim?ds=inline 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