busybox/miscutils
Ron Yorston 1ecb996fd2 less: allow use of last column of terminal
When read_lines tests whether a character will fit on the current
line it checks the *next* character but in case of overflow doesn't
display the *current* one.  This results in the last column of the
terminal never being used.

The test in re_wrap (used when the terminal width changes or line
numbers are enabled/disabled) is different:  it does allow the use
of the final column.

function                                             old     new   delta
read_lines                                           764     770      +6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 6/0)                 Total: 6 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-07-31 16:22:09 +02:00
..
2015-07-13 03:25:46 +02:00
2015-05-25 13:31:25 +02:00
2013-03-15 00:42:39 +01:00
2014-12-10 13:44:27 +01:00
2015-04-02 23:03:46 +02:00
2011-05-30 23:00:47 +02:00
2015-04-02 23:03:46 +02:00
2013-01-15 13:58:01 +01:00
2013-01-15 13:58:01 +01:00
2015-01-30 18:33:24 +01:00
2015-04-02 23:03:46 +02:00