A Vi Bug, and the Fix For It.

1 view
Skip to first unread message

Joe Weinstein

Jul 23, 1986, 1:19:34 PM7/23/86

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;
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

Reply all
Reply to author
0 new messages