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.
This commit is contained in:
Nicholas Marriott
2012-04-29 17:20:01 +00:00
parent e60f48ab09
commit a6c22d650b
6 changed files with 85 additions and 4 deletions

View File

@ -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);
}
}