mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-08 23:18:58 +01:00
Tidy by removing unused argument from grid_view_{insert,delete}_line_region
functions (currently don't fully work, this is to make fix easier).
This commit is contained in:
parent
f63761eabc
commit
643c219d18
12
grid-view.c
12
grid-view.c
@ -132,11 +132,9 @@ grid_view_insert_lines(struct grid *gd, u_int py, u_int ny)
|
||||
|
||||
/* Insert lines in region. */
|
||||
void
|
||||
grid_view_insert_lines_region(
|
||||
struct grid *gd, unused u_int rupper, u_int rlower, u_int py, u_int ny)
|
||||
grid_view_insert_lines_region(struct grid *gd, u_int rlower, u_int py, u_int ny)
|
||||
{
|
||||
GRID_DEBUG(
|
||||
gd, "rupper=%u, rlower=%u, py=%u, ny=%u", rupper, rlower, py, ny);
|
||||
GRID_DEBUG(gd, "rlower=%u, py=%u, ny=%u", rlower, py, ny);
|
||||
|
||||
rlower = grid_view_y(gd, rlower);
|
||||
|
||||
@ -163,11 +161,9 @@ grid_view_delete_lines(struct grid *gd, u_int py, u_int ny)
|
||||
|
||||
/* Delete lines inside scroll region. */
|
||||
void
|
||||
grid_view_delete_lines_region(
|
||||
struct grid *gd, unused u_int rupper, u_int rlower, u_int py, u_int ny)
|
||||
grid_view_delete_lines_region(struct grid *gd, u_int rlower, u_int py, u_int ny)
|
||||
{
|
||||
GRID_DEBUG(
|
||||
gd, "rupper=%u, rlower=%u, py=%u, ny=%u", rupper, rlower, py, ny);
|
||||
GRID_DEBUG(gd, "rlower=%u, py=%u, ny=%u", rlower, py, ny);
|
||||
|
||||
rlower = grid_view_y(gd, rlower);
|
||||
|
||||
|
@ -378,10 +378,8 @@ screen_write_insertline(struct screen_write_ctx *ctx, u_int ny)
|
||||
|
||||
if (s->cy < s->rupper || s->cy > s->rlower)
|
||||
grid_view_insert_lines(s->grid, s->cy, ny);
|
||||
else {
|
||||
grid_view_insert_lines_region(
|
||||
s->grid, s->rupper, s->rlower, s->cy, ny);
|
||||
}
|
||||
else
|
||||
grid_view_insert_lines_region(s->grid, s->rlower, s->cy, ny);
|
||||
|
||||
tty_write_cmd(ctx->wp, TTY_INSERTLINE, ny);
|
||||
}
|
||||
@ -404,10 +402,8 @@ screen_write_deleteline(struct screen_write_ctx *ctx, u_int ny)
|
||||
|
||||
if (s->cy < s->rupper || s->cy > s->rlower)
|
||||
grid_view_delete_lines(s->grid, s->cy, ny);
|
||||
else {
|
||||
grid_view_delete_lines_region(
|
||||
s->grid, s->rupper, s->rlower, s->cy, ny);
|
||||
}
|
||||
else
|
||||
grid_view_delete_lines_region(s->grid, s->rlower, s->cy, ny);
|
||||
|
||||
tty_write_cmd(ctx->wp, TTY_DELETELINE, ny);
|
||||
}
|
||||
|
6
tmux.h
6
tmux.h
@ -1337,11 +1337,9 @@ void grid_view_clear(struct grid *, u_int, u_int, u_int, u_int);
|
||||
void grid_view_scroll_region_up(struct grid *, u_int, u_int);
|
||||
void grid_view_scroll_region_down(struct grid *, u_int, u_int);
|
||||
void grid_view_insert_lines(struct grid *, u_int, u_int);
|
||||
void grid_view_insert_lines_region(
|
||||
struct grid *, u_int, u_int, u_int, u_int);
|
||||
void grid_view_insert_lines_region(struct grid *, u_int, u_int, u_int);
|
||||
void grid_view_delete_lines(struct grid *, u_int, u_int);
|
||||
void grid_view_delete_lines_region(
|
||||
struct grid *, u_int, u_int, u_int, u_int);
|
||||
void grid_view_delete_lines_region(struct grid *, u_int, u_int, u_int);
|
||||
void grid_view_insert_cells(struct grid *, u_int, u_int, u_int);
|
||||
void grid_view_delete_cells(struct grid *, u_int, u_int, u_int);
|
||||
char *grid_view_string_cells(struct grid *, u_int, u_int, u_int);
|
||||
|
Loading…
Reference in New Issue
Block a user