Closed fernape closed 3 years ago
Reported in FreeBSD's Bugzilla PR 241985
Compose the "window=%s" option as a CHAR_T to be processed properly in opts_set
"window=%s"
CHAR_T
opts_set
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
and the vi screen is limited to the specified amount of lines:
------------ BEGINING OF SCREEN ~ ~ ~ ~ ~ ~ ~ ~ ~ ------------ END OF SCREEN
Thank you for the fix.
Reported in FreeBSD's Bugzilla PR 241985
Compose the
"window=%s"
option as aCHAR_T
to be processed properly inopts_set
Before the patch, trying this:
shows an error:
And vi launches with as many lines as to fill the terminal screen
After the patch, thre is no error
and the vi screen is limited to the specified amount of lines: