diff options
author | hut <hut@lavabit.com> | 2009-12-29 22:21:50 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-29 22:21:50 +0100 |
commit | 923844b32aa8253d78c4aea005eee1b4df67fa6d (patch) | |
tree | 4bef54cd09f94a9052aeeb8d367fb1cdcbb2f6a9 | |
parent | f65fc31cc8e1acb11229fb99d3d38e64e0bbf70e (diff) | |
download | ranger-923844b32aa8253d78c4aea005eee1b4df67fa6d.tar.gz |
fixed movement in empty/unloaded directory
-rw-r--r-- | ranger/ext/accumulator.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/accumulator.py b/ranger/ext/accumulator.py index 7529471f..c0da8afb 100644 --- a/ranger/ext/accumulator.py +++ b/ranger/ext/accumulator.py @@ -6,6 +6,8 @@ class Accumulator(object): def move(self, relative=0, absolute=None): i = self.pointer lst = self.get_list() + if not lst: + return self.pointer length = len(lst) if isinstance(absolute, int): |