summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-12-03 19:18:17 +0100
committerhut <hut@lepus.uberspace.de>2014-12-03 19:18:17 +0100
commit45a43d9cdaf0fc6bb85c3b188743ac0b3617b2a9 (patch)
tree132a0f6c55fe5bb854695742185fe7ccd8692071 /ranger
parent8bd812c02a1e08aaba2a6a8ca924c41c525bea40 (diff)
downloadranger-45a43d9cdaf0fc6bb85c3b188743ac0b3617b2a9.tar.gz
widgets.browsercolumn: better drawing of paper info
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browsercolumn.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 137c30a4..8367afa6 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -260,6 +260,7 @@ class BrowserColumn(Pager):
 
 
             # Deal with the line mode
+            paperinfo = None
             use_linemode = drawn._linemode
             if use_linemode == "papertitle":
                 paperinfo = self.fm.papermanager.get_paper_info(drawn.path)
@@ -304,8 +305,14 @@ class BrowserColumn(Pager):
                 space -= vcsstringlen
 
             # info string
+            infostring = []
+            infostringlen = 0
             if use_linemode == "filename":
                 infostring = self._draw_infostring_display(drawn, space)
+            elif use_linemode == "papertitle":
+                if paperinfo:
+                    infostring.append([" " + paperinfo.authors[0] + " ", ["infostring"]])
+            if infostring:
                 infostringlen = self._total_len(infostring)
                 if space - infostringlen > 2:
                     predisplay_right = infostring + predisplay_right