seq: fix newline output when -s specified
authorPádraig Brady <P@draigBrady.com>
Wed, 19 Dec 2012 19:27:10 +0000 (19:27 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 21 Dec 2012 15:55:19 +0000 (15:55 +0000)
commit76f606a9544bd67629bd4766ff6efe8bf42b20d9
treebe7a7617d93624af2e88a9c8aca32ea3dfea17bd
parent0568f72d2a09b247176b9ad162e41e3a475a1d53
seq: fix newline output when -s specified

This regression was introduced in commit v8.19-132-g3786fb6.

* src/seq.c (seq_fast): Don't use puts() to output the first number,
and instead insert it into the buffer as for other numbers.
Also output the terminator unconditionally.
* tests/misc/seq.pl: Add some basic tests for the -s option.
* NEWS: Mention the fix.
* THANKS.in: Reported by Philipp Gortan.
NEWS
THANKS.in
src/seq.c
tests/misc/seq.pl