aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-14 07:19:09 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-14 07:19:09 +0000
commit8518b4c31a12a81006f51f549cfb681a18727f0b (patch)
tree4c37fcb2d39e96b37a80210456292d9caeca2f08 /main.c
parent8d1227cffa1e7c98f37d82f31cbb6b363d71ed16 (diff)
downloaddzen-8518b4c31a12a81006f51f549cfb681a18727f0b.tar.gz
dzen-8518b4c31a12a81006f51f549cfb681a18727f0b.zip
scrollhome annyoances
git-svn-id: http://dzen.googlecode.com/svn/trunk@94 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9027d05..930adb6 100644
--- a/main.c
+++ b/main.c
@@ -484,7 +484,9 @@ handle_newl(void) {
dzen.slave_win.last_line_vis = 0;
x_draw_body();
}
- else if(wa.map_state != IsUnmapped)
+ /* needed for scrollhome */
+ else if(wa.map_state != IsUnmapped
+ && dzen.slave_win.last_line_vis == dzen.slave_win.max_lines)
x_draw_body();
/* forget state if window was unmapped */
else if(wa.map_state == IsUnmapped || !dzen.slave_win.last_line_vis) {