diff options
author | hut <hut@lavabit.com> | 2010-03-12 17:15:33 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-12 17:15:33 +0100 |
commit | 581cce8ce660fd3e8ea4b230faf51ca7554af492 (patch) | |
tree | 987743dcaf6282e4019326630f6476e10d55ee4c | |
parent | 89660a640e925c7cd7806309003d069816053de8 (diff) | |
download | ranger-581cce8ce660fd3e8ea4b230faf51ca7554af492.tar.gz |
actions: correct preview after deleting
-rw-r--r-- | ranger/container/environment.py | 4 | ||||
-rw-r--r-- | ranger/core/actions.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ranger/container/environment.py b/ranger/container/environment.py index c67161ca..347bd2b1 100644 --- a/ranger/container/environment.py +++ b/ranger/container/environment.py @@ -120,6 +120,10 @@ class Environment(SettingsAware): path.move_to_obj(last_path) last_path = path + def ensure_correct_pointer(self): + if self.pwd: + self.pwd.correct_pointer() + def history_go(self, relative): """Move relative in history""" if self.history: diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 849a2a52..e281afc4 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -513,6 +513,7 @@ class Actions(EnvironmentAware, SettingsAware): os.remove(f.path) except OSError as err: self.notify(err) + self.env.ensure_correct_pointer() def mkdir(self, name): try: |