mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 13:33: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 = ""
|
string = ""
|
||||||
separator_useless = true;
|
separator_useless = true;
|
||||||
items.each do |uuid|
|
items.each do |uuid|
|
||||||
if deleteditems.index(uuid)
|
if deleteditems && deleteditems.index(uuid)
|
||||||
$stderr.puts "#{uuid} has been deleted!"
|
$stderr.puts "#{uuid} has been deleted!"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
@ -151,7 +151,7 @@ class TmSubmenu
|
|||||||
all[k] = TmSubmenu.new(v["name"], v)
|
all[k] = TmSubmenu.new(v["name"], v)
|
||||||
end
|
end
|
||||||
|
|
||||||
excluded = mainmenu["excludedItems"] + TmSubmenu::excluded_items
|
excluded = (mainmenu["excludedItems"] || []) + TmSubmenu::excluded_items
|
||||||
closing = "\n '("
|
closing = "\n '("
|
||||||
closing+= excluded.collect do |uuid|
|
closing+= excluded.collect do |uuid|
|
||||||
"\"" + uuid + "\""
|
"\"" + uuid + "\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user