mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-26 01:40:12 -05:00
Convert all but 2 remaining uses of xassert(false) to BUG("...")
This commit is contained in:
parent
2f81a1d07c
commit
3c86af52c2
4 changed files with 12 additions and 17 deletions
4
render.c
4
render.c
|
|
@ -1642,7 +1642,7 @@ render_csd_button(struct terminal *term, enum csd_surface surf_idx)
|
|||
break;
|
||||
|
||||
default:
|
||||
xassert(false);
|
||||
BUG("unhandled surface type: %u", (unsigned)surf_idx);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1878,7 +1878,7 @@ render_scrollback_position(struct terminal *term)
|
|||
int surf_top = 0;
|
||||
switch (term->conf->scrollback.indicator.position) {
|
||||
case SCROLLBACK_INDICATOR_POSITION_NONE:
|
||||
xassert(false);
|
||||
BUG("Invalid scrollback indicator position type");
|
||||
return;
|
||||
|
||||
case SCROLLBACK_INDICATOR_POSITION_FIXED:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue