mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Trim.
This commit is contained in:
10
screen.c
10
screen.c
@ -1,4 +1,4 @@
|
||||
/* $Id: screen.c,v 1.72 2008-09-25 20:08:54 nicm Exp $ */
|
||||
/* $Id: screen.c,v 1.73 2008-09-26 06:45:26 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -51,8 +51,8 @@ screen_reinit(struct screen *s)
|
||||
/* XXX */
|
||||
grid_clear_lines(
|
||||
s->grid, s->grid->hsize, s->grid->hsize + s->grid->sy - 1);
|
||||
|
||||
screen_clear_selection(s);
|
||||
|
||||
screen_clear_selection(s);
|
||||
}
|
||||
|
||||
/* Destroy a screen. */
|
||||
@ -150,7 +150,7 @@ screen_resize_y(struct screen *s, u_int sy)
|
||||
}
|
||||
|
||||
if (sy < oy) {
|
||||
/* Remove any remaining lines from the bottom. */
|
||||
/* Remove any remaining lines from the bottom. */
|
||||
grid_view_delete_lines(gd, sy, oy - sy);
|
||||
if (s->cy >= sy)
|
||||
s->cy = sy - 1;
|
||||
@ -171,7 +171,7 @@ screen_resize_y(struct screen *s, u_int sy)
|
||||
}
|
||||
|
||||
gd->sy = sy;
|
||||
|
||||
|
||||
s->rupper = 0;
|
||||
s->rlower = screen_size_y(s) - 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user