aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Christer Sjöholm <hcs@furuvik.net>2011-03-20 12:20:09 +0100
committerGravatar Christer Sjöholm <hcs@furuvik.net>2011-03-20 12:20:09 +0100
commit2d0e769245445eba8ec6f63c7bd122040d35f5e4 (patch)
tree686bbe0c268e30954d6116842b512051ee6bd8d9 /examples
parent23559dab4f44ccfef4edb7db19e2ec3e3671bf5a (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 04635fc..2d7d7c9 100755
--- a/examples/data/scripts/uzbl-tabbed
+++ b/examples/data/scripts/uzbl-tabbed
@@ -501,7 +501,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":