[966] in BarnOwl Developers
[D-O-H] r953 - branches/barnowl_sqlite/owl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:11:39 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@MIT.EDU
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon, 18 Feb 2008 22:06:23 -0500 (EST)
Author: nelhage
Date: 2008-02-18 22:06:22 -0500 (Mon, 18 Feb 2008)
New Revision: 953
Modified:
branches/barnowl_sqlite/owl/functions.c
Log:
Don't let us scroll offscreen by pgupping
Modified: branches/barnowl_sqlite/owl/functions.c
===================================================================
--- branches/barnowl_sqlite/owl/functions.c 2008-02-19 02:07:22 UTC (rev 952)
+++ branches/barnowl_sqlite/owl/functions.c 2008-02-19 03:06:22 UTC (rev 953)
@@ -1152,6 +1152,8 @@
lines += owl_message_get_numlines(owl_view_iterator_get_message(&it));
if (lines > recwinlines/2) break;
}
+ if(owl_view_iterator_is_at_start(&it))
+ owl_view_iterator_next(&it);
owl_view_iterator_clone(topmsg, &it);
}