From d038d9069e9a5b92055c2701f6276b25d69b1502 Mon Sep 17 00:00:00 2001 From: "Brandon R. Stoner" Date: Thu, 23 Jan 2014 17:27:48 -0800 Subject: [PATCH] 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. --- syntax/mkd.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2