Skip to content

Commit

Permalink
Merge pull request SublimeText#3 from cj/master
Browse files Browse the repository at this point in the history
Fixes the issue of it using a tags folder instead of the file
  • Loading branch information
sublimator committed Aug 6, 2011
2 parents 343f5d7 + 810258b commit 8ef7245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctagsplugin.py
Expand Up @@ -118,7 +118,7 @@ def wrapper(cb):
if not f: return cb(window.active_view())
view = window.open_file( normpath(f), encoded_row_col )
def wrapped():
if begin_edit:
if begin_edit:
with edition(view): cb(view)
else: cb(view)

Expand All @@ -145,7 +145,7 @@ def find_tags_relative_to(view):

while dirs:
joined = normpath(os.path.sep.join(dirs + [f]))
if os.path.exists(joined): return joined
if os.path.exists(joined) and not os.path.isdir(joined): return joined
else: dirs.pop()

status_message("Can't find any relevant tags file")
Expand Down

0 comments on commit 8ef7245

Please sign in to comment.