Hi, As the original author of ed I have to apologize about this kind of errors. I didn;t have so much time to finalize it, and there is a list of known bugs in the header of the file. I would recomend to add new known bugs to the the list and them let to new people to fix them. I think the code of ed is very simple and hacking it is very easy, and new comers can go to fix them. As an usual user of ed I can try to fix some of them, but I am very busy lately, but with some help I am pretty sure that we can improve ed a lot and solve a lot of these problems, but they should be stored in the list of known bugs in the header and having only one place of known bugs.
Roberto.