busybox/miscutils
Ron Yorston f06386ad4f less: fix display of line numbers
Line numbers are displayed incorrectly on lines that have a search
pattern highlighted.  The problem can be fixed by moving the call to
lineno_str in print_found above the while loop that alters the value
of the line pointer.  However, a more substantial rewrite results in
savings.

function                                             old     new   delta
buffer_print                                         688     697      +9
.rodata                                           156077  156045     -32
lineno_str                                            85       -     -85
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 9/-117)           Total: -108 bytes

Signed-off-by: Ron Yorston <rmy@frippery.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-07-19 22:48:05 +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
2015-04-02 23:03:46 +02:00
2015-07-19 22:48:05 +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