Subject: Re: [PATCH] add-zle-hook-widget
From: Bart Schaefer <[email-masked]>
To: [email-masked]
Date: Tue, 14 Jun 2016 14:06:34 -0700
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Jun 14, 11:10am, Bart Schaefer wrote:
}
} On Jun 13,  8:52am, Daniel Shahaf wrote:
} } What happens when a zle-line-init already exists when add-zle-hook-widget
} } is first called?  I had such a hook and it was simply discarded.  Should
} } add-z-h-w warn that it is overwriting/redefining an existing hook?
} 
} Hmm, how did that happen?  The test for [[ -z "${widgets[$fn]}" ]]

Two thinkos:

(1) I meant [[ -z "${widgets[$hook]}" ]]

(2) but that doesn't stop a *function* named $hook from being replaced,
    which is probably what you meant.

Yes, something should be done about that.