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
@ -100,13 +100,13 @@ class TmSubmenu
|
|||||||
|
|
||||||
first = true;
|
first = true;
|
||||||
|
|
||||||
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
|
||||||
string += "\n"
|
string += "\n"
|
||||||
string += " " * indent
|
string += " " * indent
|
||||||
string += (first ? thingy[0] : (" " * thingy[0].length))
|
string += (first ? thingy[0] : (" " * thingy[0].length))
|
||||||
@ -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