diff options
author | nfnty <git@nfnty.se> | 2017-02-07 04:13:47 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-02-07 04:23:09 +0100 |
commit | 91427884dd691794f3d382bddbf95207d734e4d6 (patch) | |
tree | bb1e10410dab2cf23d2e46097188125843777579 | |
parent | 4cc68b8694e9dbedcc9b7a47bdab30182c5684d8 (diff) | |
download | ranger-91427884dd691794f3d382bddbf95207d734e4d6.tar.gz |
gui.widgets.titlebar.Titlebar.click: Fix directory enter
-rw-r--r-- | ranger/gui/widgets/titlebar.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py index ec2b4ab7..042b4b04 100644 --- a/ranger/gui/widgets/titlebar.py +++ b/ranger/gui/widgets/titlebar.py @@ -69,12 +69,11 @@ class TitleBar(Widget): for i, part in enumerate(self.result): pos += len(part) if event.x < pos: - if i < 2: + if self.settings.hostname_in_titlebar and i <= 2: self.fm.enter_dir("~") - elif i == 2: - self.fm.enter_dir("/") else: - self.fm.enter_dir(part.directory) + if 'directory' in part.__dict__: + self.fm.enter_dir(part.directory) return True return False |