From 7045c177fdcef280c3d84ed368313c2e13f77915 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Wed, 27 Apr 2022 19:18:43 +0100 Subject: [PATCH] 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. --- commands.c | 8 ++++---- 1 file 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;