Re: Undo for "vi"

2014-03-18 Thread Laszlo Papp
On Tue, Mar 18, 2014 at 5:41 PM, Jody Bruchon wrote: > On 3/18/2014 10:51 AM, Jody Bruchon wrote: >> >> Out of an interest in seeing this feature, I'm looking at vi.c > > > I've started implementing the "undo" function; it looks to be easier than I > expected now that I have a feel for the way the

Re: Undo for "vi"

2014-03-18 Thread Jody Bruchon
On 3/18/2014 10:51 AM, Jody Bruchon wrote: Out of an interest in seeing this feature, I'm looking at vi.c I've started implementing the "undo" function; it looks to be easier than I expected now that I have a feel for the way the buffer is handled and should add very little actual code (thoug

Re: Undo for "vi"

2014-03-18 Thread Mike Dean
I haven't worked with the code, but to me, it looks like: 1. it's stuffing a pointer to the first index into the passed in array into q 2. it's replacing any newlines in the string with nulls 3. it's calling a colon() function to execute the command mode command associated with the string that was

Re: Undo for "vi"

2014-03-18 Thread Jody Bruchon
On 3/18/2014 9:24 AM, Laszlo Papp wrote: Hi, do you plan to implement this feature any soon? It would be really useful. Currently, it is a bit difficult to do undo in certain scenarios when editing files on the embedded board. Out of an interest in seeing this feature, I'm looking at vi.c and

Re: Undo for "vi"

2014-03-18 Thread Laszlo Papp
By the way, I sent it a few months ago to the mailing list, but it has not arrived. Any reason for that? I also tried to contact the mailing list owner, but have never received any replies. :-( It would be nice to avoid this in the future, so it would be nice to know the reason. Nothing has change

Undo for "vi"

2014-03-18 Thread Laszlo Papp
Hi, do you plan to implement this feature any soon? It would be really useful. Currently, it is a bit difficult to do undo in certain scenarios when editing files on the embedded board. Cheers, L. ___ busybox mailing list busybox@busybox.net http://list