[Toybox] [PATCH] VI rewrote char delete and hjkl movements

Jarno Mäkipää jmakip87 at gmail.com
Wed Apr 3 12:12:53 PDT 2019


Reimplemented basic cursor movements and char delete.
In order to work more correctly with utf-8 data.
x,h,j,k,l seems to work now with test data such as
tests/files/utf8/test2.txt

hjkl now accept count parameter so 1000j will scroll file 1000 lines
relative move to bottom

word movements w,e,b... still need to be still reimplemented in order to
step correctly on utf-8 data
---
 toys/pending/vi.c | 154 ++++++++++++++++++++++++++++++----------------
 1 file changed, 100 insertions(+), 54 deletions(-)


-Jarno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190403/9fba6b29/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-VI-rewrote-char-delete-and-hjkl-movements.patch
Type: text/x-patch
Size: 7407 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190403/9fba6b29/attachment-0002.bin>


More information about the Toybox mailing list