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

Re: Interrupting globs (Re: Something rotten in tar completion)



On Fri, 5 Dec 2014 14:50:54 +0000
Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> +TRPAINT TRAPQUIT() {
> +  zle -M "Killed by signal in ${funcstack[1]} after ${SECONDS}s";
> +  zle -R
> +  return 130
> +}

(typo fixed in commit)

Sorry, there was another bit... we need to ensure multifuncdef is on in
completion functions for this.  It is by default but we only sanitise an
explicit list of options.

diff --git a/Completion/compinit b/Completion/compinit
index e42430d..9470c92 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -133,6 +133,7 @@ _comp_options=(
        extendedglob
        glob
        multibyte
+       multifuncdef
        nullglob
        rcexpandparam
        unset

pws



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