mirror of https://github.com/tmux/tmux.git
Some other unused variables.
This commit is contained in:
parent
50f1f1dce9
commit
d58c3793d6
3
grid.c
3
grid.c
|
@ -286,7 +286,7 @@ grid_clear_history(struct grid *gd)
|
||||||
void
|
void
|
||||||
grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg)
|
grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg)
|
||||||
{
|
{
|
||||||
struct grid_line *gl_history, *gl_upper, *gl_lower;
|
struct grid_line *gl_history, *gl_upper;
|
||||||
u_int yy;
|
u_int yy;
|
||||||
|
|
||||||
/* Create a space for a new line. */
|
/* Create a space for a new line. */
|
||||||
|
@ -302,7 +302,6 @@ grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg)
|
||||||
upper++;
|
upper++;
|
||||||
gl_upper = &gd->linedata[upper];
|
gl_upper = &gd->linedata[upper];
|
||||||
lower++;
|
lower++;
|
||||||
gl_lower = &gd->linedata[lower];
|
|
||||||
|
|
||||||
/* Move the line into the history. */
|
/* Move the line into the history. */
|
||||||
memcpy(gl_history, gl_upper, sizeof *gl_history);
|
memcpy(gl_history, gl_upper, sizeof *gl_history);
|
||||||
|
|
3
tty.c
3
tty.c
|
@ -1145,11 +1145,10 @@ void
|
||||||
tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx)
|
tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx)
|
||||||
{
|
{
|
||||||
struct window_pane *wp = ctx->wp;
|
struct window_pane *wp = ctx->wp;
|
||||||
u_int nx, py = ctx->yoff + ctx->ocy;
|
u_int py = ctx->yoff + ctx->ocy;
|
||||||
|
|
||||||
tty_default_attributes(tty, wp, ctx->bg);
|
tty_default_attributes(tty, wp, ctx->bg);
|
||||||
|
|
||||||
nx = screen_size_x(wp->screen) - ctx->ocx;
|
|
||||||
tty_clear_line(tty, wp, py, ctx->xoff, ctx->ocx + 1, ctx->bg);
|
tty_clear_line(tty, wp, py, ctx->xoff, ctx->ocx + 1, ctx->bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue