Page MenuHomeFreeBSD

contrib/nvi: fix -w option
ClosedPublic

Authored by fernape on Aug 22 2020, 5:55 PM.
Tags
None
Referenced Files
F106398151: D26158.diff
Mon, Dec 30, 1:43 AM
F106372653: D26158.diff
Sun, Dec 29, 2:05 PM
Unknown Object (File)
Sat, Dec 28, 2:53 PM
Unknown Object (File)
Fri, Dec 27, 12:20 PM
Unknown Object (File)
Fri, Dec 20, 10:45 PM
Unknown Object (File)
Nov 28 2024, 12:17 PM
Unknown Object (File)
Nov 28 2024, 12:16 PM
Unknown Object (File)
Nov 28 2024, 12:16 PM

Details

Summary

Reported in PR 241985

Compose the "window=%s" option as a CHAR_T to be processed properly in
opts_set

Test Plan

Before the patch, trying this:

$ vi -w 10

shows an error:

set: no wo0 option: 'set all' gives all option values
Press Enter to continue:

And vi launches with as many lines as to fill the terminal screen

------------ BEGINING OF SCREEN

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
------------ END OF SCREEN

After the patch, thre is no error

$ vi -w 10

and the vi screen is limited to the specified amount of lines:

------------ BEGINING OF SCREEN

~
~
~
~
~
~
~
~
~
------------ END OF SCREEN

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This one has been merged upstream

Should I withdraw this review?
What to do with the original PR?

This revision was not accepted when it landed; it landed in state Needs Review.Oct 1 2020, 4:47 AM
Closed by commit rS366309: Update nvi to 2.2.0-05ed8b9 (authored by bapt). · Explain Why
This revision was automatically updated to reflect the committed changes.