mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 02:23:15 +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
27e9f77a49
commit
e073441c36
14
grid-view.c
14
grid-view.c
@ -1,4 +1,4 @@
|
||||
/* $Id: grid-view.c,v 1.15 2009-07-01 19:14:33 nicm Exp $ */
|
||||
/* $Id: grid-view.c,v 1.16 2009-07-09 18:04:17 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -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);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: screen-write.c,v 1.56 2009-07-01 19:14:33 nicm Exp $ */
|
||||
/* $Id: screen-write.c,v 1.57 2009-07-09 18:04:17 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -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);
|
||||
}
|
||||
|
8
tmux.h
8
tmux.h
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.h,v 1.351 2009-07-08 18:03:03 nicm Exp $ */
|
||||
/* $Id: tmux.h,v 1.352 2009-07-09 18:04:17 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -1336,11 +1336,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