From 8502f0fd11a7ea5410b1d1d75cdfc4f50cd95587 Mon Sep 17 00:00:00 2001 From: cos Date: Wed, 12 Jun 2013 20:44:22 +0200 Subject: Exit with empty views when ending by closing last tab. When close-last-tab-policy is set to close, it makes sense to empty the list of views when closing the last tab. The user expectation when first closing all tabs & then starting dwb with one or several urls as arguments is that only the provided urls should be opened. Without this commit an empty tab is created in addition to the ones provided to be opened. --- src/view.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view.c b/src/view.c index fce0bce3..8f3ddae2 100644 --- a/src/view.c +++ b/src/view.c @@ -1713,6 +1713,7 @@ view_remove(GList *gl) if (dwb.misc.clt_policy == CLT_POLICY_CLOSE) { view_clear_tab(dwb.state.fview); + dwb.state.views = g_list_delete_link(dwb.state.views, dwb.state.fview); dwb_end(0); return STATUS_END; } -- cgit v1.2.3