Skip to content

Commit

Permalink
fix failure when g:vim_markdown_toc_location is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
alexconst committed Apr 24, 2024
1 parent ed60b12 commit 8d56982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function! s:Toc(...)
if l:window_type ==# 'horizontal'
lopen
elseif l:window_type ==# 'vertical'
if g:vim_markdown_toc_location ==# 'right'
if exists('g:vim_markdown_toc_location') && g:vim_markdown_toc_location ==# 'right'
vertical botright lopen
else
vertical topleft lopen
Expand Down

0 comments on commit 8d56982

Please sign in to comment.