summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-01-18 18:31:52 +0100
committerhut <hut@lepus.uberspace.de>2015-01-18 18:31:52 +0100
commit28e7939492280565fbec22e341a1ef6ea798b4c3 (patch)
treef56926c00f1bc70d831da4570577c18ae3c05e53
parent47015dca61abce9badd370651b28b94092503674 (diff)
downloadranger-28e7939492280565fbec22e341a1ef6ea798b4c3.tar.gz
gui.widgets.browsercolumn: Set default value for text
this can avoid crashes
-rw-r--r--ranger/gui/widgets/browsercolumn.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 00cac553..564e9a5f 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -269,6 +269,7 @@ class BrowserColumn(Pager):
 
 
             # Deal with the line mode
+            text = ""
             if use_linemode == "metatitle":
                 assert metadata.title, "Ensure that metadata.title is set!"
                 if metadata.year: