summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/view.c1
1 files changed, 1 insertions, 0 deletions
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;
}