[Toybox] [PATCH] vi: don't exit on ^C or ^D.

enh enh at google.com
Tue Jan 14 14:23:06 PST 2020


^D is the opposite of ^U in vi (the ^D/^U pair is the half-screen
version of ^F/^B). ^C is unbound in vi. It's pretty surprising for these
to cause toybox vi to exit, and it's annoying as long as toybox vi
unconditionally exits rather than checks whether there are unsaved
modifications!

(I'm tempted to implement ^D/^U and ^F/^B, but I don't want to make
Jarno's rebase of his in-progress changes any harder.)
---
 toys/pending/vi.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vi-don-t-exit-on-C-or-D.patch
Type: text/x-patch
Size: 1399 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200114/450ba1ae/attachment-0002.bin>


More information about the Toybox mailing list