diff options
author | keis <keijser@gmail.com> | 2009-10-28 16:08:14 +0100 |
---|---|---|
committer | keis <keijser@gmail.com> | 2009-10-28 16:08:14 +0100 |
commit | 9fe687b21c31dd56a398f30c946bd354cb6b169f (patch) | |
tree | 5cc4ec0e88bb101316967618574ca20814d75c03 /examples/data/uzbl/plugins/bind.py | |
parent | f5ca0aa5c05df75dd3268e85feb8947b92486aaf (diff) | |
parent | 9d7ae1b21aefac2cf5418667bd150c110bf8932e (diff) |
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl into prompt
Diffstat (limited to 'examples/data/uzbl/plugins/bind.py')
-rw-r--r-- | examples/data/uzbl/plugins/bind.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/data/uzbl/plugins/bind.py b/examples/data/uzbl/plugins/bind.py index 8cd0702..356b6bd 100644 --- a/examples/data/uzbl/plugins/bind.py +++ b/examples/data/uzbl/plugins/bind.py @@ -24,7 +24,7 @@ starts_with_mod = re.compile('^<([A-Z][A-Za-z0-9-_]*)>') find_prompts = re.compile('<([^:>]*):(\"[^>]*\"|)>').split # For accessing a bind glob stack. -MOD_CMD, ON_EXEC, HAS_ARGS, GLOB = range(4) +MOD_CMD, ON_EXEC, HAS_ARGS, GLOB, MORE = range(5) class BindParseError(Exception): @@ -188,7 +188,7 @@ class Bind(object): stack.append((mod_cmd, on_exec, has_args, glob, index)) self.stack = list(reversed(stack)) - self.is_global = len(self.stack) == 1 + self.is_global = (len(self.stack) == 1 and self.stack[0][MOD_CMD]) def __getitem__(self, depth): |