15f4ac3ca9
- Use a common routine to handle all commands to search for a character in a line. - When searching for the nth occurrence of a character don't move the cursor if fewer than n occurrences are present. - Add support for the 'T' command, search backwards for character after next occurrence of given character. function old new delta do_cmd 4861 4805 -56 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-56) Total: -56 bytes v2: Add parentheses to avoid searches continuing past end of line. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
awk.c | ||
cmp.c | ||
Config.src | ||
diff.c | ||
ed.c | ||
Kbuild.src | ||
patch_bbox.c | ||
patch_toybox.c | ||
patch.c | ||
sed1line.txt | ||
sed_summary.htm | ||
sed.c | ||
vi.c |