summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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)