mirror of
https://github.com/tmux/tmux.git
synced 2025-04-21 11:58:48 +00:00
Line up keys in tree mode, and don't expand windows with one pane. From
Thomas Adam.
This commit is contained in:
parent
fba6140a4a
commit
8b84fc177c
@ -487,7 +487,7 @@ mode_tree_draw(struct mode_tree_data *mtd)
|
|||||||
screen_write_cursormove(&ctx, 0, i - mtd->offset);
|
screen_write_cursormove(&ctx, 0, i - mtd->offset);
|
||||||
|
|
||||||
if (i < 10)
|
if (i < 10)
|
||||||
snprintf(key, sizeof key, "(%c)", '0' + i);
|
snprintf(key, sizeof key, "(%c) ", '0' + i);
|
||||||
else if (i < 36)
|
else if (i < 36)
|
||||||
snprintf(key, sizeof key, "(M-%c)", 'a' + (i - 10));
|
snprintf(key, sizeof key, "(M-%c)", 'a' + (i - 10));
|
||||||
else
|
else
|
||||||
|
@ -258,8 +258,12 @@ window_tree_build_window(struct session *s, struct winlink *wl, void* modedata,
|
|||||||
free(text);
|
free(text);
|
||||||
free(name);
|
free(name);
|
||||||
|
|
||||||
|
if (window_count_panes(wl->window) == 1)
|
||||||
|
return (1);
|
||||||
|
|
||||||
l = NULL;
|
l = NULL;
|
||||||
n = 0;
|
n = 0;
|
||||||
|
|
||||||
TAILQ_FOREACH(wp, &wl->window->panes, entry) {
|
TAILQ_FOREACH(wp, &wl->window->panes, entry) {
|
||||||
if (filter != NULL) {
|
if (filter != NULL) {
|
||||||
cp = format_single(NULL, filter, NULL, s, wl, wp);
|
cp = format_single(NULL, filter, NULL, s, wl, wp);
|
||||||
|
Loading…
Reference in New Issue
Block a user