From: codybuell Date: Fri, 19 Jan 2018 17:17:21 +0000 (-0500) Subject: Initialize empty l:ext in case no ext opt set X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/48bf7d82c6e171fe09cfd87647271bf9247b8f0c?ds=inline;hp=-c Initialize empty l:ext in case no ext opt set --- 48bf7d82c6e171fe09cfd87647271bf9247b8f0c diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index be62835..1078f3d 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -599,6 +599,7 @@ if !exists('*s:EditUrlUnderCursor') endif endif if l:url != '' + let l:ext = '' if get(g:, 'vim_markdown_no_extensions_in_markdown', 0) " use another file extension if preferred if exists('g:vim_markdown_auto_extension_ext')