yes that worked (apart from a space to be added between [[and $
funcstack), thanks.
I'm having another annoyance:
when I exit with ctrl-c from
vared -ehp $prompt text
the history file gets emptied. I tried
trap 'zle send-break' INT
but it doesn't change the result
Is there something I can do to exit from vared with a key combination (ctrl-d only works if the line is empty) without losing the history?
I could use zle to send the kill-whole-line widget, but how do I send ctrl-d then? Is it possibile with zle to send key combinations?
thanks