]> 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:

Merge pull request #63 from monokrome/patch-1
authorJames Blanding <ilikepi+github@gmail.com>
Wed, 29 Jan 2014 16:40:55 +0000 (08:40 -0800)
committerJames Blanding <ilikepi+github@gmail.com>
Wed, 29 Jan 2014 16:40:55 +0000 (08:40 -0800)
Fix unletting non-existant b:current_syntax.

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
-  unlet b:current_syntax
+
+  if exists('b:current_syntax')
+    unlet b:current_syntax
+  endif
 endif
 
 if version < 600