[Toybox] [PATCH] vi: Added yank

Jarno Mäkipää jmakip87 at gmail.com
Sun Sep 22 02:18:01 PDT 2019


Added: yank and push

Rewrote: delete operations

Minor cleanups:

Rewrote delete operations to use one delete function instead of having
separate behavior here and there.

Now delete and yank both always move cursor and then clip the whole
cursor area into yank register. For example x is just ld or jd depeding
are we right edge or not, and dd is jd with some special flags etc.

Now only default yank register is implemented, but implemeting
yank register list should be trivial since cmd execution already passes
register char.


-Jarno

---
 toys/pending/vi.c | 472 ++++++++++++++++++++++++++--------------------
 1 file changed, 271 insertions(+), 201 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vi-Added-yank.patch
Type: text/x-patch
Size: 19865 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190922/fc8c3c17/attachment-0002.bin>


More information about the Toybox mailing list