From 28dd8bc3a4c63a863b1397f93cfd25b72957c8e0 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 19 Apr 2015 21:46:52 +0000 Subject: [PATCH] Honour renumber-windows when unlinking a window, from Thomas Adam. --- usr.bin/tmux/server-fn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c index 335eacf6374..6d8e417184f 100644 --- a/usr.bin/tmux/server-fn.c +++ b/usr.bin/tmux/server-fn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.80 2015/04/19 21:34:21 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.81 2015/04/19 21:46:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -351,6 +351,7 @@ server_unlink_window(struct session *s, struct winlink *wl) server_destroy_session_group(s); else server_redraw_session_group(s); + session_renumber_windows(s); } void -- 2.20.1