NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/57072: nvi error "Error: move: l(24 + 0) c(80 + 0)"
The following reply was made to PR bin/57072; it has been noted by GNATS.
From: Rin Okuyama <rokuyama.rk%gmail.com@localhost>
To: Simon Burge <simonb%NetBSD.org@localhost>, RVP <rvp%SDF.ORG@localhost>
Cc: Brett Lymn <blymn%internode.on.net@localhost>, gnats-bugs%netbsd.org@localhost
Subject: Re: bin/57072: nvi error "Error: move: l(24 + 0) c(80 + 0)"
Date: Thu, 27 Oct 2022 11:14:20 +0900
On 2022/10/26 23:32, Simon Burge wrote:
> @@ -348,7 +353,7 @@ vs_msg(SCR *sp, mtype_t mtype, char *lin
> padding = 0;
> padding += 2;
>
> - maxcols = sp->cols - 1;
> + maxcols = sp->cols - 2;
> if (vip->lcontinue != 0) {
> if (len + vip->lcontinue + padding > maxcols)
> vs_output(sp, vip->mtype, ".\n", 2);
Yes, this works around the problem at the moment.
Although, the real fix should be to
- fix curses bug, or
- stop nvi from relying on undefined behavior of curses.
Thanks,
rin
Home |
Main Index |
Thread Index |
Old Index