From b728970c654cc16476f4e923cb435512d20b47f3 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 3 May 2012 17:51:04 +0000 Subject: Sync OpenBSD patchset 1104: Add a flag to move-window to renumber the windows in a session (closing any gaps) and add an option to do this automatically each time a window is killed. From Thomas Adam. --- server-fn.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server-fn.c') diff --git a/server-fn.c b/server-fn.c index 4136bbb5..dd79461c 100644 --- a/server-fn.c +++ b/server-fn.c @@ -263,6 +263,9 @@ server_kill_window(struct window *w) } else server_redraw_session_group(s); } + + if (options_get_number(&s->options, "renumber-windows")) + session_renumber_windows(s); } } -- cgit