less: implement -F
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 14 Apr 2018 22:24:24 +0000 (01:24 +0300)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 15 Apr 2018 11:13:34 +0000 (13:13 +0200)
commit36941503bd8e28a1fac13edffc3ffc84346b32c5
treead3c482f9747aba9b62aca9802235c33d36f486c
parent4b6091f92c1c5abfe4597af4f3f6fa266ac46a5a
less: implement -F

Implement -F option: Exit if entire file fits on first screen.

function                                             old     new   delta
buffer_print                                         622     633     +11
less_main                                           2446    2449      +3
buffer_fill_and_print                                169     172      +3
packed_usage                                       32258   32236     -22
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 17/-22)             Total: -5 bytes

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/less.c