aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-16 21:43:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-16 21:43:05 +0000
commit57e04a1320f46eece193c3f807c8e058c4f3fb78 (patch)
treebe6e8ad1f099c3c7c59c5f7d62b6849e6007adf2 /terminal.c
parentselection: copy: insert line break if either cell is empty (diff)
grid: swap_row: remove unused parameter 'initialize'
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c8
1 files changed, 4 insertions, 4 deletions
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++)