From d0fb101d1588f6e5dd68bdae97d48ee2d9d49817 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 30 Nov 2024 16:18:16 -0800 Subject: vcr: make vcr_shift_below_row_up_one() assert unconditional This assert has proven interesting, but sticking it in the mem backend limits its exercising to headless. I mostly run this on Xlib in vwm/vmon, and it's proving annoying to trigger this assert outside of embedded headless scenarios. --- src/vcr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vcr.c b/src/vcr.c index fe13292..0c01d03 100644 --- a/src/vcr.c +++ b/src/vcr.c @@ -1361,6 +1361,8 @@ void vcr_shift_below_row_up_one(vcr_t *vcr, int row) if ((row + 1) * VCR_ROW_HEIGHT >= vcr->height) return; + assert(*(vcr->hierarchy_end_ptr) >= row); + switch (vcr->backend->type) { #ifdef USE_XLIB case VCR_BACKEND_TYPE_XLIB: { -- cgit v1.2.3