diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-05-03 17:51:04 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-05-03 17:51:04 +0000 |
commit | b728970c654cc16476f4e923cb435512d20b47f3 (patch) | |
tree | a8a9ec85309feda48f8deb9a3ab7bddcc4781835 /server-fn.c | |
parent | e45dc6ae59b6362224253415ae8f9e2ce6cdad05 (diff) | |
download | rtmux-b728970c654cc16476f4e923cb435512d20b47f3.tar.gz rtmux-b728970c654cc16476f4e923cb435512d20b47f3.tar.bz2 rtmux-b728970c654cc16476f4e923cb435512d20b47f3.zip |
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.
Diffstat (limited to 'server-fn.c')
-rw-r--r-- | server-fn.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } } |