watch: Nearly 30 bugs fixed, code optimized, no feature changes
Bugs fixed (commits in order) (details and non-bugfixes in commit msgs):
- Missing
WITH_WATCH8BITseparation. -
my_getwc(): errors whencharsigned/unsigned, off-by-one inungetc(). -
wcwidth()only if!WEOF, possible misaligned ptr dereference. -
-womitting blank line after truncated one,-wnot triggering when wcwide char doesn't fit in last col [#285 (closed)]. - --
- Blank line missing after a completely filled line [BUGS].
- --
-
-g+-qnow coexist,-dno longer removes color,-c+-ddon't mess up diffs,-qcounter doesn't soar when resizing screen,malloc(sizeof(item_ptr))->malloc(sizeof(*item_ptr)). Manpage fixes (-x, BUGS). - No output to hijacked
stdout/stderrafterfork(), no leakage of fds or processes whenEINTR, undone Debian #240989 (would let unprintables be output, may need review). Manpage fixes (-p, missingCOLUMNSandLINES). -
-qNbecomes-q1when N<1, don't reset-qcounter when screen resizes. Header: a few text misalignment issues, consider wcwidth whenWITH_WATCH8BIT,ENOMEMafterasprintf(). Manpage fixes (non-existent BUGS). - Consume inadvertent input before exiting on
-e. -
-dno longer ignores combining characters [BUGS]. -
-dnow considers full wcwidth of new character. - Orderly recovery from cmd taking longer than
-n[BUGS]. - --
- --
- --
Edited by Roman Žilka