diff options
author | Elliott Hughes <enh@google.com> | 2020-01-08 22:36:09 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-01-09 17:04:24 -0600 |
commit | 3e334d6470c3e569637d45ba71fb68f9d6df872f (patch) | |
tree | 15fc0ee7c56cdbe448d5192382e8df63a4db3faa /lib | |
parent | 3609b31e07dc677ed779e75ca901aa46a7ecc3a5 (diff) | |
download | toybox-3e334d6470c3e569637d45ba71fb68f9d6df872f.tar.gz |
vi: fix warnings, improve status display.
mbtowc(0, 0, 4) is weird, and ignoring the result is weird. Avoid all
this by just reusing the toybox lib utf8 functions.
Also fix the row/column display on the status line to count from 1 and
correctly distinguish bytes and characters in non-ASCII, and change the
mode output to only explicitly say when we're in insert mode, in the
same way that vim does. (Every time I saw the old blue-on-black text for
COMMAND I thought toybox vi had crashed!)
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions