[800] in BarnOwl Developers
[D-O-H] r801 - trunk/owl
daemon@ATHENA.MIT.EDU (asedeno@MIT.EDU)
Thu Oct 29 18:09:51 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: asedeno@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Tue, 8 Jan 2008 00:10:30 -0500 (EST)
Author: asedeno
Date: 2008-01-08 00:10:30 -0500 (Tue, 08 Jan 2008)
New Revision: 801
Modified:
trunk/owl/global.c
Log:
Fixing a personal pet peeve:
resizing should not leave the current message off screen.
Modified: trunk/owl/global.c
===================================================================
--- trunk/owl/global.c 2008-01-08 04:11:57 UTC (rev 800)
+++ trunk/owl/global.c 2008-01-08 05:10:30 UTC (rev 801)
@@ -434,6 +434,10 @@
/* in case any styles rely on the current width */
owl_messagelist_invalidate_formats(owl_global_get_msglist(g));
+ /* recalculate the topmsg to make sure the current message is on
+ * screen */
+ owl_function_calculate_topmsg(OWL_DIRECTION_NONE);
+
/* refresh stuff */
g->needrefresh=1;
owl_mainwin_redisplay(&(g->mw));