diff options
author | Mason Larobina <mason.larobina@gmail.com> | 2009-12-17 17:33:31 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2009-12-17 17:33:31 +0800 |
commit | 8e8f511e8cf207f6ef84820300d7c6a728fc16ae (patch) | |
tree | 8d02d64e9a0c453f840adda63c173f8239588bdc /examples | |
parent | dbcee7190bd63ac9bad352f5149ff9a1fecdfa27 (diff) |
No need to localise the held variable.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/data/uzbl/plugins/bind.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/data/uzbl/plugins/bind.py b/examples/data/uzbl/plugins/bind.py index 3dedf16..ee1e0c4 100644 --- a/examples/data/uzbl/plugins/bind.py +++ b/examples/data/uzbl/plugins/bind.py @@ -348,11 +348,9 @@ def after_bind(uzbl, bd): def match_and_exec(uzbl, bind, depth, keylet, bd): (on_exec, has_args, mod_cmd, glob, more) = bind[depth] - - held = keylet.held cmd = keylet.modcmd if mod_cmd else keylet.keycmd - if mod_cmd and held != mod_cmd: + if mod_cmd and keylet.held != mod_cmd: return False if has_args: |