Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] allocate origline by ztrdup(), not by dupstring()



On Sun, 21 Jun 2015 20:53:49 +0900
Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> 2015/06/17 01:54, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> 
> > This part is run when pressing backspace, it seems to always be the case
> > that origline == u->origline before this block runs. So it is copying freed
> > memory.
> 
> Backspace (in the interactive mode) seems to work as expected with the
> following patch. Does this look reasonable?

I certainly can't see how this could have bad effects.

pws



Messages sorted by: Reverse Date, Date, Thread, Author