aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Christer Sjöholm <hcs@furuvik.net>2011-03-20 12:20:09 +0100
committerGravatar Brendan Taylor <whateley@gmail.com>2011-03-21 18:18:18 -0600
commit37fe833febdb26a03816e7a82c5b649fdc0984f3 (patch)
tree8ae3f4e681b621b1427d0e80b5fc695509901ac1 /examples
parentee35babdd9ebfcb605d2c642357153850cb125e4 (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-xexamples/data/scripts/uzbl-tabbed5
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":