From a8407dbf0b3ae93a498d21f258d6edfced605064 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 20 Dec 2009 22:45:07 +0100 Subject: fixed cut/paste for the case where nothing is copied yet --- ranger/actions.py | 3 +++ ranger/container/environment.py | 1 + 2 files changed, 4 insertions(+) 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 -- cgit 1.4.1-2-gfad0