From nobody Tue Aug 29 23:27:08 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rb3VN2wB4z4rLb2 for ; Tue, 29 Aug 2023 23:27:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rb3VN0x32z3Sm2 for ; Tue, 29 Aug 2023 23:27:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693351628; a=rsa-sha256; cv=none; b=CjKzomn+GSkkk1rnsfGQuBTgyJFhAWkp/ij2hM2XUuq8CyqM6CeLu8FHXuJOgM1YXlddWB 5Y98GkgmnPxOPpfErnEWV8mFiPpDxY0OhSFLYBw5k2X4mqYjtwoD7qFJSPBRa/dJNx64hu tVdJhZiWTY22wqwXT9xEbHCtQJ8NB9HEM9yFNPSYM2XiHllMeVVHFFlmjoFHUZYdfHExSg 5hSTMGlHmF0yQA9y9AxW3dQO7lWD/qRd8zWss1qvs3xHV+gnFGylUTsgc5a7veefgqUNY5 XbQjvPOR/lnrG9R7Nw1fGSc0BKJ+fBwT2QXdzzDrIQVFitTwmElJ3tJZ1rernw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693351628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XmJ2A+DXztvvDo+3hfgXdRfvxhk2VFvEyvX1/rmJguI=; b=RuKt8rwpHwPSimnUO9dFT2nCR16IPPp2XEEb0e8Nk7miO8NsriU7uyHTk81eIbuKOfUp38 vE0H6DeWPLwnXJM9f9H7sZncSTHLpOrpZl5r08VbbbKOYBRwtyvdA3KOQB9o+PwnKxiO65 1/ZqrgDGVoGXqLhr8N1oNlrc30BIEJRUR6hTEpZesH65ArZWI0AUA/c6YQ1xjqPNn7PwkW OT6/IEHS95eGuxRjpO4ZKFopTQgWnsY8NibbzOWY9VMvbHtxlwrVIXzlIoLJKE86bvUE6z SQElGxVXLPf5q1/sY++C7NtKvlQO0mlafhdfVc+SxoMxnL8UlkNEqgLg9fLS6Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rb3VM70ZWz1B2K for ; Tue, 29 Aug 2023 23:27:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 37TNR7BX061837 for ; Tue, 29 Aug 2023 23:27:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37TNR7mt061836 for bugs@FreeBSD.org; Tue, 29 Aug 2023 23:27:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273428] contrib/nvi: Fix "move forward paragraphs" (}) with numeric prefix Date: Tue, 29 Aug 2023 23:27:08 +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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: leres@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273428 Bug ID: 273428 Summary: contrib/nvi: Fix "move forward paragraphs" (}) with numeric prefix Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: leres@freebsd.org There is a bug in the base nvi that was recently fixed in the github project that the editors/nvi2 port tracks: https://github.com/lichray/nvi2/pull/119 To reproduce: % cat test .PP 1 .PP 2 .PP 3 .PP 4 .PP 5 .PP 6 Edit the test file then type "}" 3 times and notice that the cursor correct= ly advances three paragraphs. Next go home ("H") then type "3}" and notice that the cursor (incorrectly) advances fives paragraphs ((2 * N) - 1. Here's a patch to fix this in the base system version of nvi. --=20 You are receiving this mail because: You are the assignee for the bug.=