summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py2
-rw-r--r--ranger/gui/ui.py2
-rw-r--r--ranger/gui/widgets/statusbar.py5
3 files changed, 7 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 7b721229..4ea4cfbf 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -802,7 +802,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		self.loader.add(obj)
 
 	def delete(self):
-		self.notify("Deleting!", duration=1)
+		self.notify("Deleting!")
 		selected = self.env.get_selection()
 		self.env.copy -= set(selected)
 		if selected:
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 2f27f11e..a2babed8 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -139,6 +139,8 @@ class UI(DisplayableContainer):
 		if DisplayableContainer.press(self, key):
 			return
 
+		self.status.clear_message()
+
 		self.env.keymanager.use_context('browser')
 		self.env.key_append(key)
 		kbuf = self.env.keybuffer
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 2f3c67cf..b7ab123c 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -53,9 +53,12 @@ class StatusBar(Widget):
 	def request_redraw(self):
 		self.need_redraw = True
 
-	def notify(self, text, duration=4, bad=False):
+	def notify(self, text, duration=0, bad=False):
 		self.msg = Message(text, duration, bad)
 
+	def clear_message(self):
+		self.msg = None
+
 	def draw(self):
 		"""Draw the statusbar"""
 
84dea3'>^
4c13e1f2 ^
















62cd83ba ^
4c13e1f2 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47