summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/actions.py3
-rw-r--r--ranger/container/environment.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index ed05e127..564c9faf 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -154,6 +154,9 @@ class Actions(EnvironmentAware, SettingsAware):
 		from os.path import join, isdir
 		copied_files = self.env.copy
 
+		if not copied_files:
+			return
+
 		if self.env.cut:
 			msg = self.notify("Moving ...", duration=0)
 			self.ui.redraw()
diff --git a/ranger/container/environment.py b/ranger/container/environment.py
index 7da8a608..b766a4c9 100644
--- a/ranger/container/environment.py
+++ b/ranger/container/environment.py
@@ -11,6 +11,7 @@ class Environment(SettingsAware):
 	pwd = None  # current directory
 	cf = None  # current file
 	copy = None
+	cut = None
 	selection = None
 	termsize = None
 	history = None