mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -05:00
terminal: scrolling: better debug log messages
This commit is contained in:
parent
379f7cf646
commit
1d7bf3fbca
1 changed files with 5 additions and 1 deletions
|
|
@ -146,7 +146,8 @@ term_cursor_down(struct terminal *term, int count)
|
||||||
void
|
void
|
||||||
term_scroll_partial(struct terminal *term, struct scroll_region region, int rows)
|
term_scroll_partial(struct terminal *term, struct scroll_region region, int rows)
|
||||||
{
|
{
|
||||||
LOG_DBG("scroll: %d rows", rows);
|
LOG_DBG("scroll: rows=%d, region.start=%d, region.end=%d",
|
||||||
|
rows, region.start, region.end);
|
||||||
|
|
||||||
assert(rows < term->rows && "unimplemented");
|
assert(rows < term->rows && "unimplemented");
|
||||||
|
|
||||||
|
|
@ -185,6 +186,9 @@ void
|
||||||
term_scroll_reverse_partial(struct terminal *term,
|
term_scroll_reverse_partial(struct terminal *term,
|
||||||
struct scroll_region region, int rows)
|
struct scroll_region region, int rows)
|
||||||
{
|
{
|
||||||
|
LOG_DBG("scroll reverse: rows=%d, region.start=%d, region.end=%d",
|
||||||
|
rows, region.start, region.end);
|
||||||
|
|
||||||
assert(rows < term->rows && "unimplemented");
|
assert(rows < term->rows && "unimplemented");
|
||||||
|
|
||||||
bool view_follows = term->grid->view == term->grid->offset;
|
bool view_follows = term->grid->view == term->grid->offset;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue