aboutsummaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* patch: busyboxify by migrating from toybox to busybox helpersDenys Vlasenko2010-11-211-160/+85
| | | | | | | | | | | | | | function old new delta get_line 90 128 +38 bbconfig_config_bz2 4959 4965 +6 makedevs_main 1038 1035 -3 fail_hunk 133 130 -3 finish_oldfile 174 124 -50 patch_main 2066 1987 -79 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/4 up/down: 44/-135) Total: -91 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-293-11/+11
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* awk: reduce ifdef forestRob Landley2010-10-241-33/+32
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix breakage in last commitDenys Vlasenko2010-10-241-12/+15
| | | | | | | | | | | | | | | While at it, made bb_process_escape_sequence faster (same size) function old new delta nextchar 49 53 +4 bb_process_escape_sequence 138 140 +2 next_token 838 839 +1 static.charmap 20 18 -2 is_assignment 143 135 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 7/-10) Total: -3 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix segfault on closing non-opened fileDenys Vlasenko2010-10-231-86/+96
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use xmkstemp. -65 bytes.Alexander Shishkin2010-10-223-8/+4
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* patch: implement -E optionLukas Huba2010-10-211-9/+16
| | | | | Signed-off-by: Lukas Huba <Huba.Lukas@centrum.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* revert last change (wrong author)Denys Vlasenko2010-10-211-16/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: implement -E optionGilles Espinasse2010-10-211-9/+16
| | | | | Signed-off-by: Gilles Espinasse <g.esp@free.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: replace xopen3 with xopen where makes senseDenys Vlasenko2010-10-182-2/+2
| | | | | | | | | | function old new delta uniq_main 421 416 -5 sort_main 803 798 -5 patch_main 2051 2046 -5 cpio_main 547 542 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: code shrinkDenys Vlasenko2010-10-051-43/+41
| | | | | | | | function old new delta fsrealloc 112 107 -5 next_token 862 844 -18 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* awk: 00.123 is not a octal constant; neither is 009.123. fixing thisDenys Vlasenko2010-10-051-8/+40
| | | | | | | function old new delta my_strtod 80 113 +33 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: whitespace fixesDenys Vlasenko2010-10-052-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: tweaksRob Landley2010-10-041-4/+6
| | | | | | | | | | | | 1) Eliminate spurious warnings about possibly reduced hunks. Instead only note a possible location if we don't find a non-reversed place to apply it. (Otherwise, hunks that move code forward around within a file look reversed at the removal site.) 2) Open the source file read-only, so we can apply patches to read-only files. Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: s/perror/bb_simple_perror_msg/gMarek Polacek2010-09-121-5/+5
| | | | | | | | | | | function old new delta readLines 448 446 -2 doCommands 2449 2438 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-13) Total: -13 bytes Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* typo fix in commentDenys Vlasenko2010-08-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: support "patch [FILE [PATCH]]" formatDenys Vlasenko2010-08-221-11/+24
| | | | | | | | function old new delta xopen_stdin - 15 +15 patch_main 2075 2041 -34 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: fix -N regressionDenys Vlasenko2010-08-171-5/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-167-19/+19
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: make N command behave as in GNU sedDenys Vlasenko2010-08-161-3/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: add -N and a test for it (fails for now)Denys Vlasenko2010-08-161-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: move closer to toybox codeDenys Vlasenko2010-08-131-4/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: deal with ommitted ",len" in hunk headers (default len to 1)Rob Landley2010-08-131-7/+13
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: replace it with toybox's implementationRob Landley2010-08-133-336/+959
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix sed -i: unlike without -i, it does not forget rangesDenys Vlasenko2010-08-011-4/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: fix "ask terminal" codeDenys Vlasenko2010-07-211-10/+10
| | | | | | | | | function old new delta edit_file 761 793 +32 refresh 773 780 +7 query_screen_dimensions 63 54 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>