]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix unletting non-existant b:current_syntax.
authorBrandon R. Stoner <monokrome@monokro.me>
Fri, 24 Jan 2014 01:27:48 +0000 (17:27 -0800)
committerBrandon R. Stoner <monokrome@monokro.me>
Fri, 24 Jan 2014 01:27:48 +0000 (17:27 -0800)
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

index c4ceec415a2e21e7b88d5f5b2cc12a47d8149180..afc7824aec7a6a2777092bed8ef187cd2908c779 100644 (file)
@@ -15,7 +15,10 @@ if version < 600
   so <sfile>:p:h/html.vim
 else
   runtime! syntax/html.vim
   so <sfile>: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
 endif
 
 if version < 600