[Toybox] [PATCH] vi.c: added v command, updated help text, Fixed memory leak in 'g' command

Oliver Webb aquahobbyist at proton.me
Sat Oct 14 15:15:43 PDT 2023


I have added the 'v' command (Which is essentially the opposite of the g[lobal] command).
Fixed a memory leak in the g[lobal] command (Freeing data while aborting)
Along with some code formatting (Replacing *(cmd+1) with cmd[1])

I have been trying to get a implementation of the s[ubsitute] command to work in vi.c.
The best I have been able to implement barely works. I know sed.c has one that does what
I am trying to do but I haven't been able to implement the algorithm that sed.c is using.

- Oliver Webb <aquahobbyist at proton.me>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vi.c-Added-v-command-and-updated-help-text.patch
Type: text/x-patch
Size: 2682 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20231014/49d3b117/attachment.bin>


More information about the Toybox mailing list