aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-18 11:06:35 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-18 11:06:35 +0000
commitc30fbd1d8d2c3e0b85678db8de8204189f9a67f8 (patch)
tree16f9db8a504dbb2401db4f06185e9e8c8ea8fbc0
parent6bc9ee3420443b0ff4b18cd00b39d66f71db676f (diff)
downloadrtmux-c30fbd1d8d2c3e0b85678db8de8204189f9a67f8.tar.gz
rtmux-c30fbd1d8d2c3e0b85678db8de8204189f9a67f8.tar.bz2
rtmux-c30fbd1d8d2c3e0b85678db8de8204189f9a67f8.zip
When resizing a screen smaller in alternate screen mode, all the lines needed
could be consumed by deleting from the bottom, leaving none to be removed from the top. In this case, don't call grid_view_delete_lines with ny of 0 as this is incorrect and causes a bounds check to fatal error if built with -DDEBUG.
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index aae659c0..092858f8 100644
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.93 2009-07-17 18:35:55 nicm Exp $ */
+/* $Id: screen.c,v 1.94 2009-07-18 11:06:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>