about summary refs log tree commit diff stats
path: root/ranger/actions.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-20 22:45:07 +0100
committerhut <hut@lavabit.com>2009-12-20 22:45:07 +0100
commita8407dbf0b3ae93a498d21f258d6edfced605064 (patch)
treeee86973b85840226086f3d88698bba6d3c6874f6 /ranger/actions.py
parent7536711856a5ee840314fa4e7c80bef2d31e4bdf (diff)
downloadranger-a8407dbf0b3ae93a498d21f258d6edfced605064.tar.gz
fixed cut/paste for the case where nothing is copied yet
Diffstat (limited to 'ranger/actions.py')
-rw-r--r--ranger/actions.py3
1 files changed, 3 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()