diff options
author | hut <hut@lavabit.com> | 2013-02-16 20:06:20 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-16 20:06:20 +0100 |
commit | 86048e558dc4b12c0b2a461e77f26828aa64e0a8 (patch) | |
tree | 39f7c2965d02c2a735f362db2e751719f5b1e969 | |
parent | a8593a85bb8939a7dfc92ed39e24b7c9f76004a7 (diff) | |
download | ranger-86048e558dc4b12c0b2a461e77f26828aa64e0a8.tar.gz |
config/commands: allow going into hidden directories with :narrow
-rw-r--r-- | ranger/config/commands.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 18b2f395..9a42f66d 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1067,11 +1067,14 @@ class narrow(Command): """ def execute(self): + results = len(self.fm.thisdir.files) self.cancel() # Clean up if self.rest(1) == "..": self.fm.move(left=1) - else: + elif results > 0: self.fm.move(right=1) + else: + self.fm.cd(self.rest(1)) def cancel(self): self.fm.thisdir.temporary_filter = None |