NetBSD Problem Report #59953
From www@netbsd.org Sat Jan 31 19:54:54 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R13" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id E4D201A923E
for <gnats-bugs@gnats.NetBSD.org>; Sat, 31 Jan 2026 19:54:53 +0000 (UTC)
Message-Id: <20260131195452.BB34A1A923F@mollari.NetBSD.org>
Date: Sat, 31 Jan 2026 19:54:52 +0000 (UTC)
From: tembun@bk.ru
Reply-To: tembun@bk.ru
To: gnats-bugs@NetBSD.org
Subject: [PATCH] editline.7: Document vi-histedit command
X-Send-Pr-Version: www-1.0
X-From4GNATS: "tembun@bk.ru via gnats" <gnats-admin@NetBSD.org>
>Number: 59953
>Category: lib
>Synopsis: [PATCH] editline.7: Document vi-histedit command
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 31 19:55:00 +0000 2026
>Last-Modified: Sun Feb 01 01:55:01 +0000 2026
>Originator: Artem Bunichev
>Release: NetBSD 10.1
>Organization:
>Environment:
>Description:
The editline(7) manual page lacks the detailed description of the 'vi-histedit' editor command. But it's still mentioned in the list of the default input bindings for the vi command mode.
>How-To-Repeat:
man 7 editline
>Fix:
Here's the patch that adds the missing description:
diff --git a/lib/libedit/editline.7 b/lib/libedit/editline.7
index 9a96fca47fa5..de856ce331ee 100644
--- a/lib/libedit/editline.7
+++ b/lib/libedit/editline.7
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd April 6, 2024
+.Dd January 31, 2026
.Dt EDITLINE 7
.Os
.Sh NAME
@@ -637,6 +637,12 @@ cursor, move the cursor after to the character after the inserted
word, and switch to vi insert mode.
It is an error if there is no history entry or the most recent
history entry is empty.
+.It Ic vi-histedit Pq vi command: v
+Edit the buffer with the editor and return the edit buffer to the program.
+The editor specified by the
+.Ev EDITOR
+environment variable will be invoked instead of the default editor
+.Xr vi 1 .
.It Ic vi-insert Pq vi command: i
Enter insert mode.
.It Ic vi-insert-at-bol Pq vi command: I
>Audit-Trail:
From: "Valery Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59953 CVS commit: src/lib/libedit
Date: Sun, 1 Feb 2026 01:52:58 +0000
Module Name: src
Committed By: uwe
Date: Sun Feb 1 01:52:58 UTC 2026
Modified Files:
src/lib/libedit: editline.7
Log Message:
editline(7): Document vi-histedit command
PR lib/59953 by Artem Bunichev
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libedit/editline.7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.