Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2023 23:27:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 273428] contrib/nvi: Fix "move forward paragraphs" (}) with numeric prefix
Message-ID:  <bug-273428-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273428-227>