summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2024-11-30 16:18:16 -0800
committerVito Caputo <vcaputo@pengaru.com>2024-11-30 16:18:16 -0800
commitd0fb101d1588f6e5dd68bdae97d48ee2d9d49817 (patch)
treef5914604e7d470eff85319fa0603f06ce16598fe /src
parent3ec67cdd5d4ec82ed10b6df20dc22db9242a322e (diff)
vcr: make vcr_shift_below_row_up_one() assert unconditionalHEADmaster
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.
Diffstat (limited to 'src')
-rw-r--r--src/vcr.c2
1 files changed, 2 insertions, 0 deletions
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: {
© All Rights Reserved