From 57e04a1320f46eece193c3f807c8e058c4f3fb78 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 16 May 2020 23:43:05 +0200 Subject: grid: swap_row: remove unused parameter 'initialize' --- terminal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 45392ec3..9686d237 100644 --- a/terminal.c +++ b/terminal.c @@ -1750,11 +1750,11 @@ term_scroll_partial(struct terminal *term, struct scroll_region region, int rows /* Top non-scrolling region. */ for (int i = region.start - 1; i >= 0; i--) - grid_swap_row(term->grid, i - rows, i, false); + grid_swap_row(term->grid, i - rows, i); /* Bottom non-scrolling region */ for (int i = term->rows - 1; i >= region.end; i--) - grid_swap_row(term->grid, i - rows, i, false); + grid_swap_row(term->grid, i - rows, i); /* Erase scrolled in lines */ for (int r = begin_scrolled_in; r < end_scrolled_in; r++) @@ -1806,11 +1806,11 @@ term_scroll_reverse_partial(struct terminal *term, /* Bottom non-scrolling region */ for (int i = region.end + rows; i < term->rows + rows; i++) - grid_swap_row(term->grid, i, i - rows, false); + grid_swap_row(term->grid, i, i - rows); /* Top non-scrolling region */ for (int i = 0 + rows; i < region.start + rows; i++) - grid_swap_row(term->grid, i, i - rows, false); + grid_swap_row(term->grid, i, i - rows); /* Erase scrolled in lines */ for (int r = start_scrolled_in; r < end_scrolled_in; r++) -- cgit v1.3