From 581cce8ce660fd3e8ea4b230faf51ca7554af492 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 12 Mar 2010 17:15:33 +0100 Subject: actions: correct preview after deleting --- ranger/container/environment.py | 4 ++++ ranger/core/actions.py | 1 + 2 files changed, 5 insertions(+) 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: -- cgit 1.4.1-2-gfad0 ecs/ranger/about/?h=v1.0.1'>about summary refs log tree commit diff stats
path: root/test/tc_keyapi.py
blob: f1067e2674a206da651a91f481cab49d83166489 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24