Add some NULL checks, GitHub issue 4586.

This commit is contained in:
nicm
2025-08-14 06:49:53 +00:00
parent 84775130a0
commit 0646814235
2 changed files with 4 additions and 1 deletions

View File

@ -349,6 +349,8 @@ popup_make_pane(struct popup_data *pd, enum layout_type type)
window_unzoom(w, 1);
lc = layout_split_pane(wp, type, -1, 0);
if (lc == NULL)
return;
hlimit = options_get_number(s->options, "history-limit");
new_wp = window_add_pane(wp->window, NULL, hlimit, 0);
layout_assign_pane(lc, new_wp, 0);