aboutsummaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* awk: fix FS assignment behavior. Closes 5108Denys Vlasenko2012-07-111-0/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: make -F STR interpret escape sequences. Closes 5126Denys Vlasenko2012-06-221-7/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak help textsDenys Vlasenko2012-06-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: save/restore screen upon invocationDenys Vlasenko2012-06-111-0/+4
| | | | | | | function old new delta vi_main 253 273 +20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: nuke FEATURE_VI_OPTIMIZE_CURSORDenys Vlasenko2012-06-111-124/+58
| | | | | | | | | | | | | | | | | | It is not Unicode safe, it is not saving much of I/O, and it's large: function old new delta vi_main 255 253 -2 go_bottom_and_clear_to_eol 28 26 -2 do_cmd 4194 4182 -12 show_status_line 388 374 -14 strncat 39 - -39 __GI_strncat 39 - -39 refresh 774 724 -50 place_cursor 276 83 -193 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 0/6 up/down: 0/-351) Total: -351 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: do not set autoindent by defaultDenys Vlasenko2012-06-111-7/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: yet another fix on top of zero length match codeDenys Vlasenko2012-06-081-5/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix breakage added by zero length match codeDenys Vlasenko2012-06-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: code shrinkDenys Vlasenko2012-06-041-13/+15
| | | | | | | function old new delta process_files 2181 2173 -8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix zero chars match/replaceDenys Vlasenko2012-06-041-22/+42
| | | | | | | function old new delta process_files 2099 2181 +82 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: support long opts and -iSFXSimon B2012-05-061-5/+28
| | | | | | | | | | | | function old new delta static.sed_longopts - 67 +67 sed_main 618 682 +64 packed_usage 29179 29236 +57 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 188/0) Total: 188 bytes Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: slightly better fix for prev commit's problemDenys Vlasenko2012-04-241-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix handling of s/// which has empty matchesDenys Vlasenko2012-04-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: add ":prev" command supportDennis Groenen2012-01-311-11/+18
| | | | | | | | | | | function old new delta colon 2844 2891 +47 vi_main 243 255 +12 text_yank 54 56 +2 refresh 780 774 -6 Signed-off-by: Dennis Groenen <tj.groenen@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: move mark[i] pointers if text[] moves after reallocDenys Vlasenko2012-01-311-27/+37
| | | | | | | | | | While at it, optimized :s/find/repl/ a bit function old new delta text_hole_make 120 150 +30 colon 2848 2844 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: better comments on termios manipulations. No code changes.Denys Vlasenko2012-01-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix possible case of signed char bug; expand debugging printoutsDenys Vlasenko2012-01-151-13/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: fix [end] key handlingDenys Vlasenko2011-11-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: make -p count path components, not slashes (think /blah//thing)Rob Landley2011-10-101-8/+10
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: better help textDenys Vlasenko2011-09-131-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix a SEGVDenys Vlasenko2011-09-111-9/+62
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix define name collision with BSD headersDenys Vlasenko2011-09-101-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: prevent unlimited recursion in do_cmd(). Closes 4153Denys Vlasenko2011-09-091-155/+139
| | | | | | | function old new delta do_cmd 4284 4194 -90 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: next_input_file can return NULL, don't SEGV in this case.Denys Vlasenko2011-09-071-9/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: make it able to create files (again)Rob Landley2011-08-221-5/+3
| | | | | | | | I broke patch's ability to create files in November, and nobody noticed in the ensuing 11 months. Sigh. Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix range handling for sed -i. Closes 4069Denys Vlasenko2011-08-161-28/+51
| | | | | | | | | | | function old new delta sed_main 606 618 +12 add_cmd 1099 1101 +2 process_files 2108 2099 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 14/-9) Total: 5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* less: optionally query terminal size via "ESC [ 6 n". Closes bug 2659.Denys Vlasenko2011-07-251-2/+2
| | | | | | +7 bytes is not selected, +100 if selected. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more tweak for bionicDenys Vlasenko2011-07-081-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: tweak regex.h includeDenys Vlasenko2011-07-031-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: fix regex search, make it selectable in configWalter Harms2011-06-273-158/+181
| | | | | | | | | | function old new delta char_search 134 214 +80 find_pair 187 169 -18 mycmp 37 - -37 Signed-off-by: Walter Harms <wharms@bfs.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: disable debug code; remove unsupported --dry-run from help textDenys Vlasenko2011-06-191-7/+10
| | | | | | | | | | | function old new delta packed_usage 28623 28602 -21 do_line 121 91 -30 patch_main 2086 1923 -163 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-214) Total: -214 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-055-7/+2
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* reformime: do not require \r\nDenys Vlasenko2011-05-221-2/+2
| | | | | | | | function old new delta parse 958 1063 +105 packed_usage 28691 28712 +21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi.c: remove warning: variable 'sp' set but not usedCristian Ionescu-Idbohrn2011-05-161-0/+4
| | | | | Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix "variable 'foo' set but not used" warningsDenys Vlasenko2011-05-131-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: nonblock_safe_read->nonblock_immune_read, remove unused param of ↵Denys Vlasenko2011-05-081-1/+1
| | | | | | xmalloc_reads Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: shrink by 17 bytesPascal Bellard2011-05-051-3/+7
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: support \r in s commandDenys Vlasenko2011-05-031-1/+2
| | | | | | | function old new delta copy_parsing_escapes 65 91 +26 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: code shrinkDenys Vlasenko2011-05-031-54/+92
| | | | | | | | text data bss dec hex filename 876354 493 7584 884431 d7ecf busybox_old 876323 493 7584 884400 d7eb0 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix double words in comments. No code changesMarek Polacek2011-04-161-1/+1
| | | | | Signed-off-by: Marek Polacek <mpolacek@redhat.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c ↵Pere Orga2011-04-036-0/+72
| | | | | | | editors/*.c loginutils/*.c mailutils/*.c Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: optimize diffing of files with the same metadataRoman Borisov2011-03-271-0/+25
| | | | | Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix TMOUT not restoring tty attributesDenys Vlasenko2011-02-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | function old new delta pgetc 420 500 +80 readtoken1 3202 3239 +37 read_line_input 3316 3337 +21 udhcpc_main 2610 2630 +20 file_get 266 272 +6 expandarg 958 963 +5 localcmd 257 259 +2 addLines 85 87 +2 read_line 94 95 +1 ed_main 2540 2541 +1 timed_out 1 - -1 lineedit_read_key 256 255 -1 alrm_sighandler 44 - -44 cmdloop 539 434 -105 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 10/2 up/down: 175/-151) Total: 24 bytes text data bss dec hex filename 887379 936 17200 905515 dd12b busybox_old 887411 936 17192 905539 dd143 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2011-02-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: return 1 when skipping directories with -r, but without -NAlexander Shishkin2011-01-261-3/+6
| | | | | | | | Diff in diffutils will return 1 in case -r option is specified without -N something exists only in one of the directories. Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooDenys Vlasenko2011-01-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: fix "patch at the beginning" testcase failureRob Landley2010-11-291-9/+14
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: remove out-of-file build machineryDenys Vlasenko2010-11-222-7/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cmp: with -s, do not report open errorsDenys Vlasenko2010-11-211-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: simplify double list helpersDenys Vlasenko2010-11-211-42/+32
| | | | | | | | | | | | | | function old new delta dlist_free - 29 +29 fail_hunk 130 132 +2 patch_main 1987 1982 -5 dlist_add 59 54 -5 TOY_llist_pop 9 - -9 TOY_llist_free 54 - -54 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 1/2 up/down: 31/-73) Total: -42 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>