mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-04 01:40:21 -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
13
selection.c
13
selection.c
|
|
@ -195,11 +195,10 @@ foreach_selected(
|
|||
return;
|
||||
|
||||
case SELECTION_NONE:
|
||||
xassert(false);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
xassert(false);
|
||||
BUG("Invalid selection kind");
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
@ -426,7 +425,7 @@ selection_start(struct terminal *term, int col, int row,
|
|||
break;
|
||||
|
||||
case SELECTION_NONE:
|
||||
xassert(false);
|
||||
BUG("Invalid selection kind");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -728,7 +727,7 @@ selection_update(struct terminal *term, int col, int row)
|
|||
break;
|
||||
|
||||
case SELECTION_NONE:
|
||||
xassert(false);
|
||||
BUG("Invalid selection kind");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -861,7 +860,7 @@ selection_extend_normal(struct terminal *term, int col, int row,
|
|||
|
||||
case SELECTION_BLOCK:
|
||||
case SELECTION_NONE:
|
||||
xassert(false);
|
||||
BUG("Invalid selection kind in this context");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -963,7 +962,7 @@ selection_extend(struct seat *seat, struct terminal *term,
|
|||
|
||||
switch (term->selection.kind) {
|
||||
case SELECTION_NONE:
|
||||
xassert(false);
|
||||
BUG("Invalid selection kind");
|
||||
return;
|
||||
|
||||
case SELECTION_CHAR_WISE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue