Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!dual!joe From: joe@dual.UUCP (Joe Weinstein) Newsgroups: net.unix,net.unix-wizards,net.bugs Subject: A Vi Bug, and the Fix For It. Message-ID: <1256@dual.UUCP> Date: Wed, 23-Jul-86 13:19:34 EDT Article-I.D.: dual.1256 Posted: Wed Jul 23 13:19:34 1986 Date-Received: Thu, 24-Jul-86 03:29:29 EDT Reply-To: joe@dual.UUCP (Joe Weinstein) Organization: Dual Systems Corp. Berkeley, Ca. Lines: 23 Xref: mnetor net.unix:5003 net.unix-wizards:7249 net.bugs:289 Hello. There is a bug in vi that comes up in this fashion: %vi foo.c :0r bar.c /* The 'read' command can be given a line number. */ /* This will work fine, but... */ u /* the 'undo' command will not do the expected! */ (This bug does not occur when using ex) The fix is to change one line in the routine rop() in the file ex_io.c: undap1 = undap2 = dot + 1; becomes: undap1 = undap2 = addr2 + 1; Write me if you use this fix. I just want to see who cares... Joe Weinstein at Dual Systems Corp. 2530 San Pablo Ave. Berkeley, Ca. 94702 415-549-3854