Path: utzoo!attcan!uunet!wuarchive!swbatl!texbell!merch!cpe!hal6000!tdpvax!scott From: scott@tdpvax.UUCP Newsgroups: comp.editors Subject: Vi macros bug? or correct? Message-ID: <7000001@tdpvax> Date: 23 Aug 89 17:36:00 GMT Lines: 21 Nf-ID: #N:tdpvax:7000001:000:922 Nf-From: tdpvax.UUCP!scott Aug 23 12:36:00 1989 I have a vi macro that takes a function name and creates a function comment header for me. I originally didn't handle cases where the return value was not typed. Well the macro screwed up it that case. Fine. But when I tried to do an undo vi core dumped. This was under SCO XENIX on a file 377 lines long. Trying the same macro on a vax running unix on a small file I got trash injected in the file when I did the undo. My question is is this a bug in the macro package or is this documented behavior. Also how exactly does vi execute the undo command when the last command issued was a macro. Does it just undo each command in the macro backwards? or what??? Thanks for any and all help. Scott King trsvax!tdpvax!scott trsvax!tdpvax!scott@uxc.cso.uiuc.edu Sorry no disclaimer I don't feel witty this morning!