about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-05 02:10:41 +0100
committerhut <hut@lavabit.com>2010-01-05 02:10:41 +0100
commit7b4ef308589cad675908f3cdea64c3c0edffd92a (patch)
tree5181f8a6e8bcff44844b6c0995d506dc77864b48
parent847010930a11791c87845a011cd968b2f0861155 (diff)
downloadranger-7b4ef308589cad675908f3cdea64c3c0edffd92a.tar.gz
keyapi: fixed unwanted destructive operation
-rw-r--r--ranger/keyapi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/keyapi.py b/ranger/keyapi.py
index e5d6f367..a0e71428 100644
--- a/ranger/keyapi.py
+++ b/ranger/keyapi.py
@@ -94,6 +94,7 @@ def replace_narg(number, function, args, keywords):
 			args[index] = number
 		except (ValueError, IndexError):
 			# is narg in keywords?
+			keywords = dict(keywords)
 			keywords[NARG_KEYWORD] = number
 	return args, keywords