diff options
author | hut <hut@lavabit.com> | 2009-12-20 22:45:07 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-20 22:45:07 +0100 |
commit | a8407dbf0b3ae93a498d21f258d6edfced605064 (patch) | |
tree | ee86973b85840226086f3d88698bba6d3c6874f6 | |
parent | 7536711856a5ee840314fa4e7c80bef2d31e4bdf (diff) | |
download | ranger-a8407dbf0b3ae93a498d21f258d6edfced605064.tar.gz |
fixed cut/paste for the case where nothing is copied yet
-rw-r--r-- | ranger/actions.py | 3 | ||||
-rw-r--r-- | ranger/container/environment.py | 1 |
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 |