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 04fdb7b6..d37a2fd3 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -136,7 +136,7 @@ class TitleBar(Widget):
 	def _get_tab_text(self, tabname):
 		result = ' ' + str(tabname)
 		if self.settings.dirname_in_tabs:
-			dirname = basename(self.fm.tabs[tabname])
+			dirname = basename(self.fm.tabs[tabname].path)
 			if not dirname:
 				result += ":/"
 			elif len(dirname) > 15: