Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/17/84; site elsie.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!umcp-cs!cvl!elsie!ado
From: ado@elsie.UUCP (Arthur David Olson)
Newsgroups: net.bugs.4bsd,net.unix-wizards
Subject: Re: vi bug? (4.?bsd) (with fix?)
Message-ID: <5074@elsie.UUCP>
Date: Wed, 6-Mar-85 08:52:50 EST
Article-I.D.: elsie.5074
Posted: Wed Mar  6 08:52:50 1985
Date-Received: Fri, 8-Mar-85 02:58:01 EST
References: <1798@sdcrdcf.UUCP>
Distribution: net
Organization: NIH-LEC, Bethesda, MD
Lines: 40
Xref: watmath net.bugs.4bsd:1418 net.unix-wizards:12328

Index:		ucb/ex/ex_vops.c

Description:
	<1798@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
    > 
    > 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@seismo.ARPA
	DEC, VAX and Elsie are Digital Equipment and Borden trademarks