summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-19 17:48:04 +0200
committerhut <hut@lavabit.com>2010-04-19 20:17:44 +0200
commitbf74ace46aa195414df0dcc9dcd57c8941589b44 (patch)
treece82341a0794b6603ec68b310f6cdce694642632
parentf3e1e9e4dc875782b201a9a68ea66fb49a18857c (diff)
downloadranger-bf74ace46aa195414df0dcc9dcd57c8941589b44.tar.gz
Use "/" for root in tabname if "dirname_in_tab" is true
-rw-r--r--ranger/gui/widgets/titlebar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py
index b569a26f..20ae62b4 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -146,7 +146,7 @@ class TitleBar(Widget):
 
 	def _get_tab_text(self, tabname):
 		if self.settings.dirname_in_tabs:
-			return ' ' + str(tabname) + ":" + basename(self.fm.tabs[tabname])
+			return ' ' + str(tabname) + ":" + (basename(self.fm.tabs[tabname]) or '/')
 		else:
 			return ' ' + str(tabname)