Skip to content

Commit

Permalink
Fix regression: will still search on extra_tag_paths if can't find …
Browse files Browse the repository at this point in the history
…any relevant tags files again.
  • Loading branch information
sublimator committed Jul 27, 2011
1 parent c1c23c6 commit c932d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctagsplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def alternate_tags_paths(view, tags_file):
except Exception, e:
print e

return filter(os.path.exists, search_paths)
return [p for p in search_paths if p and os.path.exists(p)]

################################# SCROLL TO TAG ################################

Expand Down Expand Up @@ -386,7 +386,6 @@ def wrapper(f):
def command(self, edit, **args):
view = self.view
tags_file = find_tags_relative_to(view)
if not tags_file: return

result = f(self, self.view, args, tags_file, {})

Expand Down Expand Up @@ -451,6 +450,7 @@ class ShowSymbols(sublime_plugin.TextCommand):

@ctags_goto_command()
def run(self, view, args, tags_file, tags):
if not tags_file: return
multi = args.get('type') =='multi'

files = files_to_search(view, tags_file, multi)
Expand Down

0 comments on commit c932d7f

Please sign in to comment.