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

Re: PATCH: highlight pasted text



Bart wrote:
> }
> }    zle yank
> }    zle -R
> }    zle read-command && zle $REPLY

That might want a split-undo in the middle there.

> That doesn't work with yank-pop, sadly, but can anyone point out a
> problem with this tiny patch?
> 
> -"read-command", readcommand, 0
> +"read-command", readcommand, ZLE_NOTCOMMAND

Seems like a sensible change to me. And I can't spot anything it might
break. read-command only really makes sense when used in a user-defined
widget.

Oliver



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