[PATCH] vi: avoid touching a new file with ZZ when no editing has been done

Yousong Zhou yszhou4tech at gmail.com
Mon Feb 20 08:40:20 UTC 2017


On 13 February 2017 at 11:00, Yousong Zhou <yszhou4tech at gmail.com> wrote:
> 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 at gmail.com>
> ---
>  editors/vi.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
>

Hello, list, any thoughts on this one?

                yousong


More information about the busybox mailing list