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.
This commit is contained in:
Tiago Cunha
2012-05-03 17:51:04 +00:00
parent e45dc6ae59
commit b728970c65
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);
}
}