summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2005-02-27 11:28:27 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-02-27 11:28:27 +0000
commitec4ca539095e3c5b5f022b6d22d73076a3a45f2e (patch)
tree1c52f8e87b252ba42240a07be5895b0c52679bce
parent1a0738c94fad0d7e17b532736e8361c4c57f0653 (diff)
downloadperl-ec4ca539095e3c5b5f022b6d22d73076a3a45f2e.tar.gz
Fix for bug [ID 20020227.005] format bug with undefined _TOP
http://rt.perl.org/rt3/Ticket/Display.html?id=8698 If there was no TOP format the lines left on page was set to fixed number, now set to the current page length of the IO channel used. More debugging for yet another bug needed. p4raw-id: //depot/perl@23999
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index c943c08006..e5d27f10cd 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1347,7 +1347,7 @@ PP(pp_leavewrite)
}
topgv = gv_fetchpv(IoTOP_NAME(io),FALSE, SVt_PVFM);
if (!topgv || !GvFORM(topgv)) {
- IoLINES_LEFT(io) = 100000000;
+ IoLINES_LEFT(io) = IoPAGE_LEN(io);
goto forget_top;
}
IoTOP_GV(io) = topgv;