aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2022-04-27 18:18:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-27 18:44:14 +0000
commit7045c177fdcef280c3d84ed368313c2e13f77915 (patch)
treefc5076118894ceadf285d87dd9337d3dff216f37
parentchangelog: add new ‘unreleased’ section (diff)
commands: fix LOG_DBG() usage in cmd_scrollback_{up,down}
The "end" variable was removed from both of these functions in commit cb43c581508d8, but the references to it in the expansion of LOG_DBG() weren't.
-rw-r--r--commands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands.c b/commands.c
index d6ec9fa0..9d00067d 100644
--- a/commands.c
+++ b/commands.c
@@ -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;