diff options
author | Elliott Hughes <enh@google.com> | 2021-03-16 22:26:52 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-03-17 04:54:54 -0500 |
commit | 0b6757da5d84a7cdd903099aefd2ff7fe668705c (patch) | |
tree | 1ca482c60a3c6e2841f5702a2a9bbb4affa9f14a /toys/other/lsattr.c | |
parent | 935217e6d470b0819f2970a4408cedca52fd9525 (diff) | |
download | toybox-0b6757da5d84a7cdd903099aefd2ff7fe668705c.tar.gz |
vi: various fixes.
I've been using toybox vi as a makeshift "less" lately. This patch
contains all the fixes I've made...
$ should go to the last character before the newline, not the newline.
Fix ^b and ^f, and ^e and ^y (which was mistakenly ^u before, which is
also a movement key, but half of ^d/^u, neither of which we actually
implement, and neither of which I've ever used myself --- I might have
large hands, but they're not _that_ large).
Fix the display of lines longer than 1024 characters.
Fix the display of the "~"s after the end of the file, and use VT100 dim
to make it a bit more obvious that they're not actually part of the
file. Also be a bit more consistent about \033 which is the most common
way to write \x1b in toybox.
Don't show the status while in ex mode.
Make what the status is showing a little less unclear by adding a "C"
for the byte offset and file size, and add a percentage (albeit one
based on bytes rather than lines).
Fix the flickering seen on updates with the usual stupid trick of
setting a large buffer.
Handle SIGWINCH.
Add support for Home/End/PageUp/PageDown.
Remove a bit of duplication around calls to draw_page().
Diffstat (limited to 'toys/other/lsattr.c')
0 files changed, 0 insertions, 0 deletions