Skip to content
This repository
Browse code

Show correct file name if authors are shown

  • Loading branch information...
commit 3d5314245ab1420bf69f21665e00d39fd0d2de69 1 parent 0522fab
Simon Praetorius s2b authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 gist.py
4 gist.py
@@ -209,7 +209,7 @@ def update_gist(gist_url, file_changes, new_description=None):
209 209 return result
210 210
211 211 def gistify_view(view, gist, gist_filename):
212   - statusline_string = "Gist: " + gist_title(gist)
  212 + statusline_string = "Gist: " + gist_title(gist)[0]
213 213
214 214 if not view.file_name():
215 215 view.set_name(gist_filename)
@@ -277,7 +277,7 @@ def gist_title(gist):
277 277 if settings.get('show_authors'):
278 278 return [title, gist.get('user').get('login')]
279 279 else:
280   - return title
  280 + return [title]
281 281
282 282 def api_request_native(url, data=None, method=None):
283 283 request = urllib2.Request(url)

0 comments on commit 3d53142

Please sign in to comment.
Something went wrong with that request. Please try again.