diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-28 17:46:37 +0000 |
|---|---|---|
| committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-10-07 13:56:31 +0000 |
| commit | 7ad0001183688c56bd1edfc8fc08467e380910a4 (patch) | |
| tree | 7df8833fee6f39f5a77dacec68f5824077418886 /Completion/X/Command/_rdesktop | |
| parent | 39579: Fix string calculation for parameter quoting. (diff) | |
| download | zsh-7ad0001183688c56bd1edfc8fc08467e380910a4.tar zsh-7ad0001183688c56bd1edfc8fc08467e380910a4.tar.gz zsh-7ad0001183688c56bd1edfc8fc08467e380910a4.tar.bz2 zsh-7ad0001183688c56bd1edfc8fc08467e380910a4.tar.lz zsh-7ad0001183688c56bd1edfc8fc08467e380910a4.tar.xz zsh-7ad0001183688c56bd1edfc8fc08467e380910a4.tar.zst zsh-7ad0001183688c56bd1edfc8fc08467e380910a4.zip | |
39479 + 39481 minus _path_files hunk (see 39489): Completion: audit 'compset -P' calls to use shortest match where applicable, plus random drive-by tweaks.
Found by grepping for patterns that can match needles of various lengths:
:grep 'compset -[PS].*[\#^*()\|<>?~\]' Completion/
Diffstat (limited to 'Completion/X/Command/_rdesktop')
| -rw-r--r-- | Completion/X/Command/_rdesktop | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Completion/X/Command/_rdesktop b/Completion/X/Command/_rdesktop index 5e480b333..55a6ea7b5 100644 --- a/Completion/X/Command/_rdesktop +++ b/Completion/X/Command/_rdesktop @@ -89,9 +89,8 @@ case $state in ;; redirection) redir="${PREFIX%%:*}" - if compset -P '*='; then + if compset -P 1 '*='; then curcontext="${curcontext%:*}:$redir" - compset -P '*=' case $redir in comport|lptport) _wanted devices expl device _files -g '*(-%)' && ret=0 ;; disk) _directories && ret=0 ;; |
