From owner-freebsd-bugs@freebsd.org Fri Dec 16 22:14:46 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84820C83CA6 for ; Fri, 16 Dec 2016 22:14:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCD5C9A for ; Fri, 16 Dec 2016 22:14:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uBGMEkLg050267 for ; Fri, 16 Dec 2016 22:14:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 215349] [PATCH] Restore default tab file completion behavior for nvi Date: Fri, 16 Dec 2016 22:14:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: leres@ee.lbl.gov X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2016 22:14:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215349 Bug ID: 215349 Summary: [PATCH] Restore default tab file completion behavior for nvi Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: leres@ee.lbl.gov Keywords: patch Created attachment 178017 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D178017&action= =3Dedit patch Prior to FreeBSD 10 and nvi version 2.0.3 the filec option was undefined by default. For example you could change blanks to tabs from vi mode with: :%s/ /^I/g This is the behavior for vi in System V, all versions of BSD vi, nvi up to = and including 1.79 and the vi/nvi that shipped with all versions of FreeBSD pri= or to 10. Head r254225 upgraded nvi from 1.79 to 2.1.1-4334a8297f which added: filec=3D\t to opts_init() changing the default. This means to use a tab in a substitut= ion while in vi mode you must escape it with ^V. In most cases typing a bare ^I results in the terminal bell sound. Note that tab works the old way when editing in ex mode. This means doing substitutions is currently different between vi mode and ex mode. The upstream repo for nvi is here: https://github.com/lichray/nvi2 r322 is the version that added the filec default to opts_init(). Here is the github issue about this problem: https://github.com/lichray/nvi2/issues/15 I believe the plan is to either remove this default or apply it contextuall= y. The attached patch against head/308461 restores the old filec default of undefined. --=20 You are receiving this mail because: You are the assignee for the bug.=