diff options
author | hut <hut@lavabit.com> | 2012-08-06 04:58:34 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-08-06 04:58:34 +0200 |
commit | 13cb3fc49c07ba45f12508000ac615ff2e9b3e23 (patch) | |
tree | f22016b2829bbfe04a60636f856d829e62266845 /ranger | |
parent | 47e9517c8f7e870d01cf469faa94e72b1bc5d9b1 (diff) | |
download | ranger-13cb3fc49c07ba45f12508000ac615ff2e9b3e23.tar.gz |
widgets.titlebar: fixed crash on ':set dirname_in_tabs True'
Diffstat (limited to 'ranger')
-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 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: |