stuff
This commit is contained in:
@@ -34,9 +34,9 @@ let
|
||||
local replacementWords=(${lib.escapeShellArgs args})
|
||||
local replacementStr="''${replacementWords[*]}"
|
||||
COMP_LINE="''${COMP_LINE/#$aliasName/$replacementStr}"
|
||||
COMP_POINT=(( COMP_POINT + (#replacementStr - #aliasName) ))
|
||||
COMP_CWORD=(( COMP_CWORD + (#replacementWords - 1) ))
|
||||
COMP_WORDS=("''${replacementWords[@]}" "''${COMP_WORDS:1}")
|
||||
COMP_POINT=$(( COMP_POINT + ''${#replacementStr} - ''${#aliasName} ))
|
||||
COMP_CWORD=$(( COMP_CWORD + ''${#replacementWords[@]} - 1 ))
|
||||
COMP_WORDS=("''${replacementWords[@]}" "''${COMP_WORDS[@]:1}")
|
||||
_comp_command_offset 0
|
||||
'';
|
||||
in
|
||||
|
Reference in New Issue
Block a user