Small bug fix.
This commit is contained in:
parent
f2a9a5eb8d
commit
2308687d1f
@ -594,7 +594,7 @@ class SnippetManager(object):
|
||||
changes in the future. 'file_data' can be injected in tests."""
|
||||
self._snippets[ft].addfile(filename)
|
||||
if file_data is None:
|
||||
file_data = file_data.read()
|
||||
file_data = open(filename, "r").read()
|
||||
for event, data in parse_snippets_file(file_data):
|
||||
if event == "error":
|
||||
msg, line_index = data
|
||||
|
Loading…
Reference in New Issue
Block a user