busybox/editors
Ron Yorston d08206dce1 vi: correctly detect when a deletion empties the buffer
Michał Berger has reported two issues:

- Repeatedly deleting and undoing the deletion of the last line
  results in characters being lost from the end of the line.

- Deleting the bottom line twice then attempting to undo each of
  these deletions results in a segfault.

The problem seems to be an incorrect test for whether the text buffer
is empty.

Reported-by: Michał Berger <michallinuxstuff@gmail.com>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-12-03 10:07:58 +01:00
..
awk.c awk: abort if NF set to negative value 2018-11-28 12:16:29 +01:00
cmp.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
Config.src restore documentation on the build config language 2018-06-06 15:16:48 +02:00
diff.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
ed.c line editing: make read_line_input() not take timeout param 2017-08-02 17:27:28 +02:00
Kbuild.src switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
patch_bbox.c getopt32: remove applet_long_options 2017-08-08 17:09:40 +02:00
patch_toybox.c Update menuconfig items with approximate applet sizes 2017-07-18 22:01:24 +02:00
patch.c patch: implement --dry-run 2018-04-14 16:05:26 +02:00
sed1line.txt add sed mini-doc 2007-11-13 17:13:31 +00:00
sed_summary.htm doc: add info about sed s/.../.../I modifier 2008-03-01 19:29:56 +00:00
sed.c sed: fix double-free in FEATURE_CLEAN_UP code 2018-09-25 12:50:54 +02:00
vi.c vi: correctly detect when a deletion empties the buffer 2018-12-03 10:07:58 +01:00