about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index 2494623a..1463e076 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -466,7 +466,7 @@ class Actions(EnvironmentAware, SettingsAware):
 	def delete(self):
 		self.notify("Deleting!", duration=1)
 		selected = self.env.get_selection()
-		self.env.copy -= selected
+		self.env.copy -= set(selected)
 		if selected:
 			for f in selected:
 				if os.path.isdir(f.path) and not os.path.islink(f.path):