hush/editors
Yousong Zhou 8f3bf4f0d3 vi: avoid touching a new file with ZZ when no editing has been done
This is the behaviour observed with standard vim and busybox vi of at
least 1.22.1.  It was changed with commit "32afd3a vi: some
simplifications" which happened before 1.23.0.

Mistyping filename on command line happens fairly often and it's better
we restore the old behaviour to avoid a few unnecessary flash writes and
sometimes efforts of debugging bugs caused by those unneeded stray
files.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-03-24 21:13:10 +01:00
..
awk.c awk: fix segfault on for loop syntax error 2016-10-24 02:09:56 +02:00
cmp.c switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
Config.src Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
diff.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
ed.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
Kbuild.src switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
patch_bbox.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
patch_toybox.c Code style fixes, no code changes 2016-11-28 01:22:57 +01:00
patch.c Code style fixes, no code changes 2016-11-28 01:22:57 +01:00
sed_summary.htm doc: add info about sed s/.../.../I modifier 2008-03-01 19:29:56 +00:00
sed.c Code style fixes, no code changes 2016-11-28 01:22:57 +01:00
sed1line.txt add sed mini-doc 2007-11-13 17:13:31 +00:00
vi.c vi: avoid touching a new file with ZZ when no editing has been done 2017-03-24 21:13:10 +01:00