busybox/editors
Ron Yorston 61052d1bb8 vi: further fixes to undo after autoindent
Commit bb983f30e (vi: fix faulty undo after autoinsert) has a
number of problems:

- The commit message refers to 'autoinsert' when it really means
  'autoindent'.

- The indentation of undo_push_insert() was incorrect.

- Most seriously the commit only fixed the problem for cases where
  the indentation was exactly one character.  This is because undo_push()
  only allows single characters to be queued for UNDO_INS_QUEUED.

  Lifting this restriction allows the example given in the previous
  commit message (with a three character indent) to work.

function                                             old     new   delta
undo_push                                            406     435     +29
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 29/0)               Total: 29 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2019-02-11 11:47:20 +01:00
..
awk.c awk: Fix overly permissive func arg list parsing 2019-01-21 12:59:19 +01:00
cmp.c config: update size information 2018-12-28 03:20:17 +01: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 config: update size information 2018-12-28 03:20:17 +01:00
Kbuild.src
patch_bbox.c
patch_toybox.c config: update size information 2018-12-28 03:20:17 +01:00
patch.c config: update size information 2018-12-28 03:20:17 +01:00
sed1line.txt
sed_summary.htm
sed.c sed: code shrink 2019-01-21 13:49:28 +01:00
vi.c vi: further fixes to undo after autoindent 2019-02-11 11:47:20 +01:00