Index | Thread | Search

From:
"Andy Bradford" <amb-sendok-1790635342.dmekjffgfcabkomodapa@bradfords.org>
Subject:
Re: ksh: allow editing empty line with 'v' in vi-mode
To:
"Johannes Thyssen Tishman" <jtt@openbsd.org>, tech@openbsd.org
Date:
30 Jul 2026 16:42:22 -0600

Download raw body.

Thread
Thus said Johannes Thyssen Tishman on Thu, 30 Jul 2026 18:21:29 -0000:

> -			if (es->linelen == 0 && argcnt == 0)
> -				return -1;

These lines were last changed to correct a bug:

http://cvsweb.openbsd.org/log/src/bin/ksh/vi.c,v?sort=File#rev1.19

I'm not  sure what that bug  was, but I'm  not sure removing this  is an
improvement.

Also, you don't have to type nonsense to get into vi-mode, you just type
a space and press esc-v. Doing so enters vi-mode with an empty buffer.

Andy