diff options
author | hut <hut@lavabit.com> | 2010-04-19 17:48:04 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-19 20:17:44 +0200 |
commit | bf74ace46aa195414df0dcc9dcd57c8941589b44 (patch) | |
tree | ce82341a0794b6603ec68b310f6cdce694642632 | |
parent | f3e1e9e4dc875782b201a9a68ea66fb49a18857c (diff) | |
download | ranger-bf74ace46aa195414df0dcc9dcd57c8941589b44.tar.gz |
Use "/" for root in tabname if "dirname_in_tab" is true
-rw-r--r-- | ranger/gui/widgets/titlebar.py | 2 |
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) |