From: Brandon R. Stoner Date: Fri, 24 Jan 2014 01:27:48 +0000 (-0800) Subject: Fix unletting non-existant b:current_syntax. X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/d038d9069e9a5b92055c2701f6276b25d69b1502?ds=sidebyside;hp=-c Fix unletting non-existant b:current_syntax. Fixed an issue where `unlet b:current_syntax` occurs when recovering from a Session and b:current_syntax has not been set yet. --- d038d9069e9a5b92055c2701f6276b25d69b1502 diff --git a/syntax/mkd.vim b/syntax/mkd.vim index c4ceec4..afc7824 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -15,7 +15,10 @@ if version < 600 so :p:h/html.vim else runtime! syntax/html.vim - unlet b:current_syntax + + if exists('b:current_syntax') + unlet b:current_syntax + endif endif if version < 600