vi bug? (4.?bsd) (with fix?)

Arthur David Olson ado at elsie.UUCP
Wed Mar 6 23:52:50 AEST 1985


Index:		ucb/ex/ex_vops.c

Description:
	<1798 at sdcrdcf.UUCP>--
    > . ..I have a file whose contents is:
    > 12345
    > 67890
    > 
    > The cursor is on the 1, and I type the following sequence of commands:
    > ma
    > f5
    > y`a
    > <cr>
    > P
    > 
    > Now, I think the P should insert 12345 before the 6 on the second line.
    > Instead, it DELETES the 6789. . .

Repeat-By:
	See above.

Fix:
	The file to be fixed is known as "/usr/src/cmd/ex/ex_vops.c" in 4.1bsd.
	The trade secret status of the code precludes a clearer posting.

 ed /usr/src/cmd/ex/ex_vops.c
 /dot > wdot/c
 #ifdef OLDVERSION
 	if (dot > wdot) {
 #else
 	if (dot > wdot || (dot == wdot && wcursor != 0 && cursor > wcursor)) {
 #endif
 .
 w
 q
--
UNIX and EX are AT&T Bell Laboratories and Elizabeth Taylor trademarks.
--
	UUCP: ..decvax!seismo!elsie!ado    ARPA: elsie!ado at seismo.ARPA
	DEC, VAX and Elsie are Digital Equipment and Borden trademarks



More information about the Comp.unix.wizards mailing list