components/zsh/patches/misc.patch
branchs11u3-sru
changeset 7641 a9fdeecad872
equal deleted inserted replaced
7637:7d1b5becdee6 7641:a9fdeecad872
       
     1 Fix a crash when completing with _values after an =.  Fixed upstream
       
     2 post-5.3.1, posted in zsh-workers 40362.
       
     3 
       
     4 diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
       
     5 index 7bf9535..5b9ceec 100644
       
     6 --- a/Src/Zle/computil.c
       
     7 +++ b/Src/Zle/computil.c
       
     8 @@ -3569,8 +3569,8 @@ bin_compvalues(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
       
     9  	    Cvval val = cv_get_val(cv_laststate.d, args[1]);
       
    10  
       
    11  	    if (val && val->arg) {
       
    12 -		setsparam(args[2], val->arg->descr);
       
    13 -		setsparam(args[3], val->arg->action);
       
    14 +		setsparam(args[2], ztrdup(val->arg->descr));
       
    15 +		setsparam(args[3], ztrdup(val->arg->action));
       
    16  
       
    17  		if (args[4])
       
    18  		    setsparam(args[4], ztrdup(val->name));
       
    19 
       
    20 Reduce noise in completion when POSIX_IDENTIFIERS is set.  Fixed upstream
       
    21 post-5.3.1, posted in zsh-workers 40372
       
    22 
       
    23 diff --git a/Completion/compinit b/Completion/compinit
       
    24 index 2715c47..cc663cb 100644
       
    25 --- a/Completion/compinit
       
    26 +++ b/Completion/compinit
       
    27 @@ -154,6 +154,7 @@ _comp_options=(
       
    28      NO_markdirs
       
    29      NO_octalzeroes
       
    30      NO_posixbuiltins
       
    31 +    NO_posixidentifiers
       
    32      NO_shwordsplit
       
    33      NO_shglob
       
    34      NO_warncreateglobal