lib/git/switcher/menu.rb in git-switcher-1.0.1 vs lib/git/switcher/menu.rb in git-switcher-1.0.2

- old
+ new

@@ -36,13 +36,15 @@ @repo = repo remote_branches = @repo.branches.find_all(&:remote?) local_branches = @repo.branches.find_all(&:local?) + shortcuts = (1..Float::INFINITY).each + @submenus = [ - submenu_for('REMOTE BRANCHES', remote_branches, shortcuts('a')), - submenu_for('LOCAL BRANCHES', local_branches, shortcuts(1)), - submenu_for('TAGS', @repo.tags, shortcuts(100)), + submenu_for('REMOTE BRANCHES', remote_branches, shortcuts), + submenu_for('LOCAL BRANCHES', local_branches, shortcuts), + submenu_for('TAGS', @repo.tags, shortcuts), ].compact @menu_items = @submenus.map(&:menu_items).flatten @lookup = Hash[@menu_items.map(&:shortcut).zip(@menu_items)]