aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* style fixes. No code changesvda2007-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18409 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Copyright, help text, whitespace cleanupsvda2007-04-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18295 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random style fixes (extra spaces deleted)vda2007-03-241-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18228 69ca8d6d-28ef-0310-b511-8ec308f3f277
* assorted fixes uncovered by randomconfig runsvda2007-03-221-1/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18209 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vi: fix signed char-induced potential bugsvda2007-03-211-30/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18200 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vi: remove Byte typedef and massive amount of casts.vda2007-03-211-424/+445
| | | | | | | | also optimize many strlen() calls. if (strlen(buf) <= 0) goto vc1 - ??!! git-svn-id: svn://busybox.net/trunk/busybox@18188 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vi: support $EXINIT and -cvda2007-03-211-14/+53
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18187 69ca8d6d-28ef-0310-b511-8ec308f3f277
* kill superfluous returns at the end of void functionsvda2007-03-111-8/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18066 69ca8d6d-28ef-0310-b511-8ec308f3f277
* clean up accumulated whitespace damagevda2007-03-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18020 69ca8d6d-28ef-0310-b511-8ec308f3f277
* suppress warnings about easch <applet>_main() havingvda2007-02-031-0/+1
| | | | | | | no preceding prototype git-svn-id: svn://busybox.net/trunk/busybox@17740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* next bunch of fixes for bugs found by randconfigvda2006-12-301-202/+205
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17106 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2006-12-261-1/+1
| | | | | | | last xcalloc replaced by xzalloc git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove casts from xmalloc()vda2006-12-191-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17011 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add option to disable command execution from vi & awkvda2006-12-191-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17001 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 2vda2006-11-271-19/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 1vda2006-11-271-25/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* get_terminal_width_height: do not pass insanely large valuesvda2006-10-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16452 69ca8d6d-28ef-0310-b511-8ec308f3f277
* message string changes, mostly for consistency, also -32 bytes in .rodatavda2006-10-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add open_read_close() and similar stuffvda2006-10-141-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lots of silly indent fixesvda2006-10-031-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16302 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace cleanupvda2006-09-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - merge -r15463:15564 from busybox_scratch branch through these changesets:aldot2006-08-201-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r15465 | aldot | 2006-06-21 20:48:06 +0200 (Wed, 21 Jun 2006) | 3 lines - use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert. - use xchdir() since all is invain if it fails there anyways, supposedly ------------------------------------------------------------------------ r15466 | aldot | 2006-06-21 20:55:16 +0200 (Wed, 21 Jun 2006) | 2 lines - adjust docs to take CONFIG_BUSYBOX_EXEC_PATH into account. ------------------------------------------------------------------------ r15467 | aldot | 2006-06-21 21:31:24 +0200 (Wed, 21 Jun 2006) | 18 lines - partial fallout of my TREE_USED touchup against gcc-4.2: rip unused vars, save s 144 bytes text data bss dec hex filename 862434 10156 645924 1518514 172bb2 busybox.old 862322 10156 645892 1518370 172b22 busybox function old new delta z_len 4 - -4 textend 4 - -4 part_nb 4 - -4 insize 4 - -4 ifile_size 4 - -4 do_link 4 - -4 new_text 70 60 -10 ipaddr_list_link 33 23 -10 gzip_main 898 822 -76 ------------------------------------------------------------------------------ (add/remove: 0/6 grow/shrink: 0/3 up/down: 0/-120) Total: -120 bytes ------------------------------------------------------------------------ r15468 | aldot | 2006-06-21 21:43:05 +0200 (Wed, 21 Jun 2006) | 19 lines - remove useless global exports function old new delta rpm_main 940 1601 +661 rpm_getstring 107 112 +5 rpm_getint 148 153 +5 loop_through_files 103 106 +3 fileaction_dobackup 115 113 -2 fileaction_list 5 - -5 rpm_getcount 42 - -42 extract_cpio_gz 161 - -161 rpm_gettags 504 - -504 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 4/1 up/down: 674/-714) Total: -40 bytes text data bss dec hex filename 862322 10156 645892 1518370 172b22 busybox.old 862290 10156 645892 1518338 172b02 busybox ------------------------------------------------------------------------ r15555 | aldot | 2006-06-30 14:10:11 +0200 (Fri, 30 Jun 2006) | 22 lines - shrink syslog a little bit, move a big buffer (for 'line') off the bss, fold s emaphore stuff into single caller manually. stats: function old new delta logMessage 395 427 +32 message 1245 1257 +12 opts - 4 +4 small 1 - -1 local_logging 4 - -4 doRemoteLog 4 - -4 circular_logging 4 - -4 syslogd_main 1299 1285 -14 static.res 36 16 -20 .rodata 186650 186586 -64 static.line 1025 - -1025 ------------------------------------------------------------------------------ (add/remove: 1/5 grow/shrink: 2/3 up/down: 48/-1136) Total: -1088 bytes cow@s37:~/src/busybox_scratch$ size sysklogd/syslogd.o{.orig,} text data bss dec hex filename 3723 348 5242 9313 2461 sysklogd/syslogd.o.orig 3697 348 4188 8233 2029 sysklogd/syslogd.o ============================================================================== Overall bloatcheck for the changeset mentioned above: function old new delta rpm_main 953 1608 +655 logMessage 395 427 +32 message 1245 1257 +12 opts - 4 +4 rpm_getstring 107 110 +3 rpm_getint 148 151 +3 loop_through_files 103 104 +1 small 1 - -1 fileaction_dobackup 115 113 -2 z_len 4 - -4 textend 4 - -4 part_nb 4 - -4 local_logging 4 - -4 insize 4 - -4 ifile_size 4 - -4 do_link 4 - -4 doRemoteLog 4 - -4 circular_logging 4 - -4 fileaction_list 5 - -5 new_text 70 60 -10 ipaddr_list_link 33 23 -10 clear_bufs 31 21 -10 syslogd_main 1287 1273 -14 builtin_help 190 176 -14 static.res 36 16 -20 builtin_source 229 199 -30 rpm_getcount 42 - -42 gzip_main 842 786 -56 .rodata 227176 227112 -64 lash_main 609 527 -82 busy_loop 3883 3739 -144 extract_cpio_gz 155 - -155 rpm_gettags 501 - -501 static.line 1025 - -1025 ------------------------------------------------------------------------------ (add/remove: 1/15 grow/shrink: 6/12 up/down: 710/-2221) Total: -1511 bytes git-svn-id: svn://busybox.net/trunk/busybox@15852 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-031-20/+8
| | | | | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Standardize on the vi editing directives being on the first line.rpjday2006-07-021-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15581 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few patches from Erik Hovland, turning strncpy() into safe_strncpy() andlandley2006-06-251-2/+1
| | | | | | | removing some unnecessary code. git-svn-id: svn://busybox.net/trunk/busybox@15505 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove pointless "inline" wrapper around get_terminal_width_height().landley2006-06-211-21/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15452 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Zubicaray reported a bug in vi that causes it to eat 100% cpu when you closelandley2006-06-211-87/+2
| | | | | | | | | | an xterm it's running in. The vi signal behavior would catch and restarts lots of signals, like SIGHUP, that should just kill the thing. (Leftover behavior from when it would segfault all the time.) Filtered out the more obviously bad ones. If it segfaults, we should find and fix the problem. git-svn-id: svn://busybox.net/trunk/busybox@15451 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - make sure that we see string_insert only if we need it.aldot2006-06-091-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate #include <sys/time.h> so libbb.h does it.landley2006-05-271-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove SIGIOT as suggested by landley.aldot2006-05-191-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15137 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - Rich Felker writes:aldot2006-05-191-0/+2
| | | | | | | | | SIGIOT is not defined in any standard i can find and it seems to be useless (alias for SIGABRT) on linux. i put it in #ifdef but it's probably best just to remove it and cut down the size a bit. git-svn-id: svn://busybox.net/trunk/busybox@15128 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - include strings.haldot2006-05-191-0/+1
| | | | | | | Thanks to Rich Felker for pointing this out. git-svn-id: svn://busybox.net/trunk/busybox@15124 69ca8d6d-28ef-0310-b511-8ec308f3f277
* adjust ifdefs for inclusion of string_insert() routinepgf2006-04-051-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14754 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix behavior of ZZ, with respect to readonly mode(s). originalpgf2006-03-281-5/+6
| | | | | | | patch and report from Alexander Griesser. git-svn-id: svn://busybox.net/trunk/busybox@14679 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add support for :wn (initial patch from Alexander Griesser)pgf2006-03-271-8/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14668 69ca8d6d-28ef-0310-b511-8ec308f3f277
* drop obsolete version string in favor of actual BB version (frompgf2006-03-271-16/+4
| | | | | | | Bernhard Fischer) git-svn-id: svn://busybox.net/trunk/busybox@14667 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko turning static const int (which gets emitted intolandley2006-03-101-12/+14
| | | | | | | the busybox binary) into enums (which don't). git-svn-id: svn://busybox.net/trunk/busybox@14513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix up yet more annoying signed/unsigned and mixed type errorsandersen2006-01-301-13/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed warning "comparison between signed and unsigned". Added ↵vodz2006-01-301-8/+7
| | | | | | ATTRIBUTE_UNUSED. Whitespace git-svn-id: svn://busybox.net/trunk/busybox@13708 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-13/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix bug #474:pgf2005-11-281-14/+3
| | | | | | | | | | | | | | | | 0000474: vi crashes often problem was that the buffer used for "." command ("last_modifying_cmd") wasn't being maintined correctly -- the recording code was walking back over the front of that buffer when a repeatable insert command included backspacing (e.g. "i\b\b\bfoo"). the fix is to simply record the backspaces along with the rest of the command. also, cleaned up start_new_cmd_q() slightly. git-svn-id: svn://busybox.net/trunk/busybox@12559 69ca8d6d-28ef-0310-b511-8ec308f3f277
* common BUFSIZ BSS buffer, small reduce code, data and bssvodz2005-10-151-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11867 69ca8d6d-28ef-0310-b511-8ec308f3f277
* catch and report errors from file_write()pgf2005-10-091-15/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11817 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make Hit_Return() available when CONFIG_FEATURE_VI_COLON is off. it'spgf2005-10-091-2/+3
| | | | | | | needed elsewhere as well now. git-svn-id: svn://busybox.net/trunk/busybox@11816 69ca8d6d-28ef-0310-b511-8ec308f3f277
* initialize a couple of vars whose warnings were suppressed becausepgf2005-09-161-1/+1
| | | | | | | i was building w/ debug on before, which suppresses optimization. git-svn-id: svn://busybox.net/trunk/busybox@11479 69ca8d6d-28ef-0310-b511-8ec308f3f277
* some combinations of status line and screen refresh don't give apgf2005-09-161-76/+112
| | | | | | | | | | | | | | | | | | | | correct screen, and bug 215 reports trouble with the status line on small screens. with this change a) the status line should always be refreshed properly, b) the status line is a little shorter than it used to be ("I" instead of "--INSERT--"), c) the status line will be truncated if it doesn't fit on the screen, and d) if the screen is too narrow for an error or transient status message (from psb() or psbs()), then that message will be followed by a "Hit Return" prompt. (it wasn't until i did this last bit that the size grew. with this, these changes add about 150 bytes.) - pgf git-svn-id: svn://busybox.net/trunk/busybox@11477 69ca8d6d-28ef-0310-b511-8ec308f3f277
* allow either backspace or DEL, in addition to the user's erasepgf2005-09-131-1/+2
| | | | | | | char, to be used in get_input_line() git-svn-id: svn://busybox.net/trunk/busybox@11451 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix for:pgf2005-07-201-0/+1
| | | | | | | | 0000118: vi join command does not mark file as modified for certain lines. git-svn-id: svn://busybox.net/trunk/busybox@10873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* allow both ^H and DEL to backspace in insert mode (bug #23)pgf2005-07-181-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10851 69ca8d6d-28ef-0310-b511-8ec308f3f277