Skip to content

Commit

Permalink
fix ls-tabs output when no tabs open
Browse files Browse the repository at this point in the history
  • Loading branch information
bobthecow committed May 28, 2012
1 parent e2e5f27 commit 21405f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coda
Expand Up @@ -107,7 +107,7 @@ def open_tabs():
""" % (bundle_id, guts)

if coda_is_running():
return [os.path.realpath(tab) for tab in filter(lambda a: a != "missing value", osascript(scpt).rstrip("\n").split("\n"))]
return [os.path.realpath(tab) for tab in filter(lambda a: a != "missing value" and a != "", osascript(scpt).rstrip("\n").split("\n"))]
else:
return []

Expand Down

0 comments on commit 21405f4

Please sign in to comment.