diff options
Diffstat (limited to 'src/roff/troff/input.cc')
-rw-r--r-- | src/roff/troff/input.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/roff/troff/input.cc b/src/roff/troff/input.cc index 366d77fd..d0f86328 100644 --- a/src/roff/troff/input.cc +++ b/src/roff/troff/input.cc @@ -3964,6 +3964,11 @@ static int read_size(int *x) } } else if (csdigit(c)) { + if (!inc && c == '0') { + // special case -- \s0 means to revert to previous size. + *x = 0; + return 1; + } val = c - '0'; if (!inc && c != '0' && c < '4') { tok.next(); |