Skip to content

Commit 85f7080

Browse files
author
Peter Stephenson
committed
users/10013: fix use of zshall in helpfiles
1 parent a8d89a3 commit 85f7080

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2006-03-13 Peter Stephenson <[email protected]>
2+
3+
* users/10013: Util/helpfiles: fix use of zshall for
4+
generating.
5+
16
2006-03-09 Wayne Davison <[email protected]>
27

38
* users/10007: Francisco Borges: Doc/Zsh/options.yo: Added

Util/helpfiles

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ BUILTINS: while (<>) {
107107
undef($undented);
108108
if (/^\s*$/ || ($undented = (/^(\s*)/ && length($1) < $indent))) {
109109
$undented && &doprint($_);
110-
while (defined($_ = <>) && /(^\w)|(^\s*$)/) {
110+
while (defined($_ = <>) && /(^\w)|(^\s*$)/) {
111+
# NAME is the start of the next section when in zshall.
112+
# (Historical note: we used to exit on the page header,
113+
# but text from the old section can continue to the
114+
# new page).
115+
last BUILTINS if /^\s*NAME\s*$/;
111116
last BUILTINS if /^STARTUP\/SHUTDOWN FILES/;
112117
last if /^zsh.*\s\d$/; # GNU nroff -man end-of-page marker
113118
}
@@ -121,11 +126,6 @@ BUILTINS: while (<>) {
121126
} while (defined($_) && /^\s*$/);
122127
}
123128
}
124-
# In zshall, the zshcompctl manual page comes after the
125-
# builtins for 3.0, and zshzle comes after it for 3.1.
126-
if (/ZSH(COMPCTL|ZLE)\(1\).*ZSH(COMPCTL|ZLE)\(1\)/) {
127-
last BUILTINS;
128-
}
129129
if (/^(\s*)/ && length($1) < $indent) {
130130
# This may be just a bug on the SGI, or maybe something
131131
# more sinister (don\'t laugh, this is nroff).

0 commit comments

Comments
 (0)