mirror of
https://github.com/tmux/tmux.git
synced 2025-09-05 08:07:03 +00:00
Free entire screen when destroyed.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: screen-display.c,v 1.3 2007-11-21 15:35:53 nicm Exp $ */
|
||||
/* $Id: screen-display.c,v 1.4 2007-11-21 21:28:58 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -180,9 +180,10 @@ screen_display_scroll_region_up(struct screen *s)
|
||||
|
||||
if (s->hsize == s->hlimit) {
|
||||
/*
|
||||
* If the limit is hit, shift the whole thing up.
|
||||
* XXX this is inefficient, is there a better way?
|
||||
* If the limit is hit, free the first and shift
|
||||
* the whole thing up.
|
||||
*/
|
||||
screen_free_lines(s, 0, 1);
|
||||
screen_move_lines(s, 0, 1, sy - 1);
|
||||
} else {
|
||||
s->hsize++;
|
||||
|
Reference in New Issue
Block a user