diff options
author | Mason Larobina <mason.larobina@gmail.com> | 2009-12-12 17:57:56 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2009-12-12 17:57:56 +0800 |
commit | b64ddd7bce761b53839f981949fce6fd6daa855c (patch) | |
tree | 34d023f4e283fea90fada915a9fe416159bbddbf /examples/data | |
parent | 8a342efb325d682fdfbb4a2ba07e98dfd53c1f2f (diff) |
Unbreak <prompt!command> stack binds.
Diffstat (limited to 'examples/data')
-rw-r--r-- | examples/data/uzbl/plugins/bind.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/data/uzbl/plugins/bind.py b/examples/data/uzbl/plugins/bind.py index 6d08555..0f0d0ce 100644 --- a/examples/data/uzbl/plugins/bind.py +++ b/examples/data/uzbl/plugins/bind.py @@ -96,16 +96,16 @@ class Bindlet(object): if self.after_cmds is None: return - (prompt, cmd, set), self.after_cmds = self.after_cmds, None + (prompt, is_cmd, set), self.after_cmds = self.after_cmds, None self.uzbl.clear_keycmd() if prompt: self.uzbl.set('keycmd_prompt', prompt) - if set and cmd: - self.uzbl.send(cmd) + if set and is_cmd: + self.uzbl.send(set) - elif set and not cmd: + elif set and not is_cmd: self.uzbl.send('event SET_KEYCMD %s' % set) |