Small bug fix.

This commit is contained in:
Holger Rapp 2014-02-08 19:56:14 +01:00
parent 72beeb28f4
commit f6b197e18e

View File

@ -653,7 +653,8 @@ class SnippetManager(object):
def _load_snippets_for(self, ft):
"""Load all snippets for the given 'ft'."""
del self._snippets[ft]
if ft in self._snippets:
del self._snippets[ft]
for fn in _base_snippet_files_for(ft):
self._parse_snippets(ft, fn)
# Now load for the parents