diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:34:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:34:56 +0000 |
commit | 28b8b866c574d712aa5b814b000bc490c89e603e (patch) | |
tree | bc842acf3aab38f2e66e8812a18d6106a5d9bae1 /mode-tree.c | |
parent | Adding upstream version 3.3a. (diff) | |
download | tmux-upstream.tar.xz tmux-upstream.zip |
Adding upstream version 3.4.upstream/3.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mode-tree.c')
-rw-r--r-- | mode-tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mode-tree.c b/mode-tree.c index c007e27..cebd4f0 100644 --- a/mode-tree.c +++ b/mode-tree.c @@ -497,7 +497,7 @@ mode_tree_build(struct mode_tree_data *mtd) mode_tree_clear_lines(mtd); mode_tree_build_lines(mtd, &mtd->children, 0); - if (tag == UINT64_MAX) + if (mtd->line_list != NULL && tag == UINT64_MAX) tag = mtd->line_list[mtd->current].item->tag; mode_tree_set_current(mtd, tag); @@ -962,8 +962,8 @@ mode_tree_display_menu(struct mode_tree_data *mtd, struct client *c, u_int x, x -= (menu->width + 4) / 2; else x = 0; - if (menu_display(menu, 0, NULL, x, y, c, NULL, mode_tree_menu_callback, - mtm) != 0) + if (menu_display(menu, 0, 0, NULL, x, y, c, BOX_LINES_DEFAULT, NULL, + NULL, NULL, NULL, mode_tree_menu_callback, mtm) != 0) menu_free(menu); } |