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

Re: Slower zsh prompt in weird circumstances



On 21/08/2023 13:48 Nojus Gudinavičius <nojus.gudinavicius@xxxxxxxxx> wrote:
> I think I found the problem - large enough history file.
> 
> Turns out, after every executed command zle goes through full history
> erasing line edits. Most of the time this is not necessary.
> 
> I made a hacky patch that at least skips the erasing if no edits were
> made.

That looks a perfectly reasonable optimisation as far as it goes.  I'll
commit it with the variable type changed to int --- we happen not to
use char's even for flags, not for any particularly good reason, I don't
think.

pws




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