mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
Fix a bug reported by pedzsan when importing snippets from https://github.com/pivotal/jasmine-tmbundle
This commit is contained in:
parent
49a9d85d10
commit
0d00c707e9
@ -103,7 +103,7 @@ class TmSubmenu
|
||||
string = ""
|
||||
separator_useless = true;
|
||||
items.each do |uuid|
|
||||
if deleteditems.index(uuid)
|
||||
if deleteditems && deleteditems.index(uuid)
|
||||
$stderr.puts "#{uuid} has been deleted!"
|
||||
next
|
||||
end
|
||||
@ -151,7 +151,7 @@ class TmSubmenu
|
||||
all[k] = TmSubmenu.new(v["name"], v)
|
||||
end
|
||||
|
||||
excluded = mainmenu["excludedItems"] + TmSubmenu::excluded_items
|
||||
excluded = (mainmenu["excludedItems"] || []) + TmSubmenu::excluded_items
|
||||
closing = "\n '("
|
||||
closing+= excluded.collect do |uuid|
|
||||
"\"" + uuid + "\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user