aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix vi so that error messages, insert mode messages, etc areandersen2005-07-181-12/+37
| | | | | | | all actually displayed in the status line as expected git-svn-id: svn://busybox.net/trunk/busybox@10849 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In Bug 208, bernhardf writes:vapier2005-04-161-6/+6
| | | | | | | | | On machines with only ANSI compliant compilers, not explitily delcaring an empty parameter list 'void' causes failure. git-svn-id: svn://busybox.net/trunk/busybox@10113 69ca8d6d-28ef-0310-b511-8ec308f3f277
* regularly update the status line displayandersen2004-08-191-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@9131 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Assign 'forced' before the goto to avoid a warningandersen2004-07-201-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8971 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Thomas Winkler -- vi -R did not workandersen2004-03-311-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8673 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-38/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Richard Kojedzinszky writes:andersen2004-02-061-2/+2
| | | | | | | | | | | | Hi All, I aplogoize for the mistake, but i have just recognized that somehow the last patch I sent in was wrong, and a '0' was instead of a '-1'. Because of this, vi does behave the wrong way. So again, it should be the last patch for vi. This is for pre7. git-svn-id: svn://busybox.net/trunk/busybox@8422 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Richard Kojedzinszky writes:andersen2004-02-041-5/+8
| | | | | | | | | | | | Hi, I've noticed the bug also, and here is another patch for it. I hope it'll not introduce more bugs. Not too nice, but works for me. Here it is for busybox-1.00-pre6 git-svn-id: svn://busybox.net/trunk/busybox@8401 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Richard Kojedzinszky, when using END at end of lines it wasbug12004-01-211-3/+5
| | | | | | | skipping to next line, cw command was leaving one char in buffer git-svn-id: svn://busybox.net/trunk/busybox@8323 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Match changes made to cmdeditandersen2003-12-231-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)andersen2003-09-151-27/+9
| | | | | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix crashme code, by Jim Treadwaybug12002-12-031-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6087 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch_69, 8 bit clean and other fixes from Vladimir N. Oleynikbug12002-12-021-409/+450
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change if(x)free(x); to free(x);aaronl2002-11-281-27/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6055 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Jouni Malinen to avoid some buffer overflows in vi,andersen2002-10-261-3/+9
| | | | | | | closing bug #1270 git-svn-id: svn://busybox.net/trunk/busybox@5714 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vi inliningaaronl2002-08-211-878/+878
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5324 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied a patch from Philip Blundell <pb@nexus.co.uk>:sandman2002-07-311-5/+7
| | | | | | | Added support for ":x" as an alias for ":wq" to vi git-svn-id: svn://busybox.net/trunk/busybox@5141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix from kergothtimr2002-04-261-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.kraai2001-12-201-20/+20
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3925 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from "Andrew Tipton" <andrew@cadre5.com> to enable vi cursorandersen2001-11-171-4/+19
| | | | | | | keys while editing. git-svn-id: svn://busybox.net/trunk/busybox@3689 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Steve Merrifield <steve@labyrinth.net.au> to make viandersen2001-11-171-6/+6
| | | | | | | use xmalloc git-svn-id: svn://busybox.net/trunk/busybox@3687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change strdup calls to xstrdup (patch from Steve Merrifield).kraai2001-11-121-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-225/+225
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Robert J. Osborne <rj@resourceinternational.com> that fixesandersen2001-08-021-3/+3
| | | | | | | | | a bug in vi where the beginning of the text space was not checked before dot is decremented for delete and escape sequences on an empty file. git-svn-id: svn://busybox.net/trunk/busybox@3184 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't save and restore readonly flag if BB_FEATURE_VI_READONLY isn't enabled.kraai2001-07-311-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3166 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some adjustments, mostly from David McCullough <davidm@lineo.com> toandersen2001-07-191-2/+2
| | | | | | | | | | make busybox be more uClinux friendly. I also adjusted Config.h for uClinux so it will automagically disable apps the arn't going to work without fork() and such. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3130 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is vodz' latest patch. Sorry it took so long...andersen2001-07-171-2/+2
| | | | | | | | | | | | 1) ping cleanup (compile fix from this patch already applied). 2) traceroute call not spare ntohl() now (and reduce size); 3) Fix for functions not declared static in insmod, ash, vi and mount. 4) a more simple API cmdedit :)) 5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option 6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd) git-svn-id: svn://busybox.net/trunk/busybox@3103 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanups and sinze reduction for the vi applet from Aaron Lehmannandersen2001-07-021-14/+15
| | | | | | | <aaronl@vitelus.com> git-svn-id: svn://busybox.net/trunk/busybox@2971 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir's last_patch_15bug12001-06-261-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2905 69ca8d6d-28ef-0310-b511-8ec308f3f277
* These were broken when using dmalloc due to include file orderingandersen2001-06-231-4/+4
| | | | | | | | problems. busybox.h must be last. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2890 69ca8d6d-28ef-0310-b511-8ec308f3f277