commands: fix LOG_DBG() usage in cmd_scrollback_{up,down}

The "end" variable was removed from both of these functions in
commit cb43c58150, but the references to it in the expansion
of LOG_DBG() weren't.
This commit is contained in:
Craig Barnes 2022-04-27 19:18:43 +01:00 committed by Daniel Eklöf
parent de201ead2e
commit 7045c177fd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -59,8 +59,8 @@ cmd_scrollback_up(struct terminal *term, int rows)
xassert(grid->rows[(new_view + r) & (grid->num_rows - 1)] != NULL);
#endif
LOG_DBG("scrollback UP: %d -> %d (offset = %d, end = %d, rows = %d)",
view, new_view, offset, end, grid_rows);
LOG_DBG("scrollback UP: %d -> %d (offset = %d, rows = %d)",
view, new_view, offset, grid_rows);
selection_view_up(term, new_view);
term->grid->view = new_view;
@ -113,8 +113,8 @@ cmd_scrollback_down(struct terminal *term, int rows)
xassert(grid->rows[(new_view + r) & (grid_rows - 1)] != NULL);
#endif
LOG_DBG("scrollback DOWN: %d -> %d (offset = %d, end = %d, rows = %d)",
view, new_view, offset, end, grid_rows);
LOG_DBG("scrollback DOWN: %d -> %d (offset = %d, rows = %d)",
view, new_view, offset, grid_rows);
selection_view_down(term, new_view);
term->grid->view = new_view;