mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 18:08:51 +00:00
Do not crash if in buffer mode and the last buffer is deleted using the
command.
This commit is contained in:
parent
7a44984069
commit
57837bbf67
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user