aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2009-12-20 23:35:21 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2009-12-20 23:35:21 +0800
commit69bbac176fd112fdfa785bdf72ab0918ad1d13af (patch)
treeead7bb35af7c34a04aa3b2b9399082e60fe3b9e6 /examples
parent2eddfbec45551fa3a29d941813c5e75ebcc6b73a (diff)
parent5365536bbde8fee3ab2dc29ce576ea365b367c98 (diff)
Merge branch 'onexec-nonarg-binds'
Diffstat (limited to 'examples')
-rw-r--r--examples/data/uzbl/plugins/bind.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/data/uzbl/plugins/bind.py b/examples/data/uzbl/plugins/bind.py
index 7d032c8..1cba7b2 100644
--- a/examples/data/uzbl/plugins/bind.py
+++ b/examples/data/uzbl/plugins/bind.py
@@ -257,13 +257,13 @@ class Bind(object):
# Is the binding a MODCMD or KEYCMD:
mod_cmd = ismodbind(glob)
- # Execute the command on UPDATES or EXEC's:
- on_exec = True if glob.endswith('_') else False
+ # Do we execute on UPDATES or EXEC events?
+ on_exec = True if glob[-1] in ['!', '_'] else False
- # Does the command store arguments:
+ # Does the command take arguments?
has_args = True if glob[-1] in ['*', '_'] else False
- glob = glob[:-1] if has_args else glob
+ glob = glob[:-1] if has_args or on_exec else glob
mods, glob = split_glob(glob)
stack.append((on_exec, has_args, mods, glob, index))