From 2d0e769245445eba8ec6f63c7bd122040d35f5e4 Mon Sep 17 00:00:00 2001 From: Christer Sjöholm Date: Sun, 20 Mar 2011 12:20:09 +0100 Subject: Allow NEW_TAB to be called without an URI The new instance tries to open the CWD, a blank page would be nicer. --- examples/data/scripts/uzbl-tabbed | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/data/scripts') 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": -- cgit v1.2.3