https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273428
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: [email protected]
Reporter: [email protected]
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 correctly
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.
--
You are receiving this mail because:
You are the assignee for the bug.