Merge branch 'obsd-master'

pull/3666/head
Thomas Adam 2023-08-11 20:01:09 +01:00
commit 11e69f6025
1 changed files with 1 additions and 1 deletions

View File

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