summaryrefslogtreecommitdiff
path: root/src/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/view.c')
-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;
}