fmt: import the handling of HY_LAST and \p from ren.c
ren: executing traps while half of an input line is read

The old scheme did not work well while formatting whole paragraphs.