I found a bug in the region calculate function in ui.c.
As you can see the action following the second if statement is incorrect. It should be:
That is add h(eight) not w(idth) to row.
Code:
region region_calculate(region loc) { int w, h; Term_get_size(&w, &h); if (loc.col < 0) loc.col += w; if (loc.row < 0) loc.row += w; if (loc.width <= 0) loc.width += w - loc.col; if (loc.page_rows <= 0) loc.page_rows += h - loc.row; return loc; }
Code:
if (loc.row < 0) loc.row += h;
Comment