Permalink
Browse files

Show correct file name if authors are shown

  • Loading branch information...
1 parent 0522fab commit 3d5314245ab1420bf69f21665e00d39fd0d2de69 @s2b s2b committed Oct 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 gist.py
View
4 gist.py
@@ -209,7 +209,7 @@ def update_gist(gist_url, file_changes, new_description=None):
return result
def gistify_view(view, gist, gist_filename):
- statusline_string = "Gist: " + gist_title(gist)
+ statusline_string = "Gist: " + gist_title(gist)[0]
if not view.file_name():
view.set_name(gist_filename)
@@ -277,7 +277,7 @@ def gist_title(gist):
if settings.get('show_authors'):
return [title, gist.get('user').get('login')]
else:
- return title
+ return [title]
def api_request_native(url, data=None, method=None):
request = urllib2.Request(url)

0 comments on commit 3d53142

Please sign in to comment.