From 7b4ef308589cad675908f3cdea64c3c0edffd92a Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 5 Jan 2010 02:10:41 +0100 Subject: keyapi: fixed unwanted destructive operation --- ranger/keyapi.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit 1.4.1-2-gfad0