busybox/editors
Petja Patjas 05e5d6a381 vi: Ensure that the edit buffer ends in a newline
Currently vi assumes that the edit buffer ends in a newline. This may
not be the case. For example:

  $ printf test > test
  $ vi test
  <press 'o'>

We fix this by inserting a newline to the end during initialization.

Signed-off-by: Petja Patjas <pp01415943@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2024-07-11 17:52:18 +02:00
..
awk.c awk: mktime() with no arguments is not allowed 2024-07-10 07:04:28 +02:00
cmp.c Update applet size estimates 2023-07-10 17:25:21 +02:00
Config.src restore documentation on the build config language 2018-06-06 15:16:48 +02:00
diff.c diff: code shrink 2021-02-22 19:00:07 +01:00
ed.c Update applet size estimates 2023-07-10 17:25:21 +02:00
Kbuild.src switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
patch_bbox.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
patch_toybox.c Update applet size estimates 2023-07-10 17:25:21 +02:00
patch.c Update applet size estimates 2023-07-10 17:25:21 +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: check errors writing file with sed -i 2024-01-02 00:58:56 +01:00
vi.c vi: Ensure that the edit buffer ends in a newline 2024-07-11 17:52:18 +02:00