diff options
author | Christer Sjöholm <hcs@furuvik.net> | 2011-03-20 12:20:09 +0100 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-03-21 18:18:18 -0600 |
commit | 37fe833febdb26a03816e7a82c5b649fdc0984f3 (patch) | |
tree | 8ae3f4e681b621b1427d0e80b5fc695509901ac1 /examples | |
parent | ee35babdd9ebfcb605d2c642357153850cb125e4 (diff) |
Allow NEW_TAB to be called without an URI
The new instance tries to open the CWD, a blank page would be nicer.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/data/scripts/uzbl-tabbed | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/data/scripts/uzbl-tabbed b/examples/data/scripts/uzbl-tabbed index d3cfe2f..72de00e 100755 --- a/examples/data/scripts/uzbl-tabbed +++ b/examples/data/scripts/uzbl-tabbed @@ -498,7 +498,10 @@ class UzblInstance: elif type == "LOAD_COMMIT": self.uri = args[0] elif type == "NEW_TAB": - self.parent.new_tab(args[0]) + if args: + self.parent.new_tab(args[0]) + else: + self.parent.new_tab() elif type == "NEW_BG_TAB": self.parent.new_tab(args[0], '', 0) elif type == "NEW_TAB_NEXT": |