[net.bugs.4bsd] 4.?bsd vi drops @'s into long lines

ado@elsie.UUCP (Arthur David Olson) (04/11/85)

Index:		ucb/ex/ex_vadj.c Fix

Description:
	4.?bsd vi may drop '@' characters into long lines on some terminals.

Repeat-By:
	Hop onto a VT52 (or go into VT52 mode on a terminal capable of doing
	so).  Execute vi.  Ensure that vi's "redraw" option is set.  Enter
	two lines of text, each of which has seventy 'x' characters followed
	by twenty spaces followed by ten 'y' characters.  Position the cursor
	on the first line.  Tap the 'd' key twice to delete the first line,
	then tap the 'u' key to put it back.  Note the '@' character at the
	beginning of the second line of the screen.

Fix:
	The trade secret status of the code precludes a clearer posting.
	Note that this is really a workaround rather than a fix; in some
	cases, installing this workaround may cause '@' characters that mark
	"deleted" lines to not be displayed when they ought to be.

	ed ex_vadj.c
	/vinslin/i
	#ifndef OLDVERSION /* Added April, 1985 to remove extraneous @s */
				if (!glitched) {
					++glitched;
					oldheldech = heldech;
					oldhold = hold;
				}
				hold |= HOLDAT;
	#endif
	.
	w
	q
--
VT52 is a Digital Equipment Corporation trademark
Bugs is a Warner Brothers trademark
VI is a Prisoner trademark
--
	UUCP: ..decvax!seismo!elsie!ado    ARPA: elsie!ado@seismo.ARPA
	DEC, VAX and Elsie are Digital Equipment and Borden trademarks