summaryrefslogtreecommitdiff
path: root/app/xterm/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/xterm/print.c')
-rw-r--r--app/xterm/print.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/xterm/print.c b/app/xterm/print.c
index 7ea1c8e1a..7200e3eb6 100644
--- a/app/xterm/print.c
+++ b/app/xterm/print.c
@@ -1,4 +1,4 @@
-/* $XTermId: print.c,v 1.105 2009/08/07 00:25:10 tom Exp $ */
+/* $XTermId: print.c,v 1.107 2009/08/31 00:37:04 tom Exp $ */
/************************************************************
@@ -279,8 +279,10 @@ xtermPrintEverything(XtermWidget xw)
int bot = screen->max_row;
int was_open = initialized;
- if (!screen->whichBuf)
- top = -screen->savedlines;
+ if (!screen->whichBuf) {
+ top = -screen->savedlines - screen->topline;
+ bot -= screen->topline;
+ }
TRACE(("xtermPrintEverything, rows %d..%d\n", top, bot));
while (top <= bot)