From ebc330e5be2df3805fc39534ed9eb036c5e85dd3 Mon Sep 17 00:00:00 2001 From: Mason Larobina Date: Mon, 26 Oct 2009 00:09:24 +0800 Subject: Only make a bind global if its a mod-bind. --- examples/data/uzbl/plugins/bind.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/data/uzbl/plugins/bind.py') diff --git a/examples/data/uzbl/plugins/bind.py b/examples/data/uzbl/plugins/bind.py index fe017eb..8c932be 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): -- cgit v1.2.3