diff options
author | hut <hut@lavabit.com> | 2010-05-28 11:32:34 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-05-28 11:32:34 +0200 |
commit | f01238dc2a9ee6675a977ee0c1c5253ad489f3fa (patch) | |
tree | b626d82a94f3b4c02bde4accf8eacf045b76b0cb /ranger | |
parent | db41bc89ef1e0bb737fd24c36898c2c1fabb7cc0 (diff) | |
download | ranger-f01238dc2a9ee6675a977ee0c1c5253ad489f3fa.tar.gz |
defaults.apps: shortened code of last commit
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/defaults/apps.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index 8c766419..1f2f751c 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -140,8 +140,7 @@ class CustomApplications(Applications): if c.mode in arg: # mode 1, 2 and 3 will set the image as the background return tup('feh', arg[c.mode], c.file.path) if c.mode is 11 and len(c.files) is 1: # view all files in the cwd - directory = self.fm.env.get_directory(c.file.dirname) - images = (f.basename for f in directory.files if f.image) + images = (f.basename for f in self.fm.env.cwd.files if f.image) return tup('feh', '--start-at', c.file.basename, *images) return tup('feh', *c) |