[comp.editors] Vi macros bug? or correct?

scott@tdpvax.UUCP (08/24/89)

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!