1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02:00

41458: _subversion: Don't cache an empty commands list when svn is not available at the first invocation of _svn.

This commit is contained in:
Daniel Shahaf 2017-07-25 14:11:49 +00:00
parent d4b94b5e83
commit 4015f3cf5d
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-07-28 Daniel Shahaf <d.s@daniel.shahaf.name>
* 41458: Completion/Unix/Command/_subversion: Don't cache an
empty commands list when svn is not available at the first
invocation of _svn.
2017-07-26 Peter Stephenson <p.stephenson@samsung.com>
* 41464, 41466 (modified): Doc/Zsh/builtins.yo,

View File

@ -36,7 +36,12 @@ _svn () {
_svn_cmds=(
${=${(f)${${"$(_comp_locale; _call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
)
_store_cache svn-cmds _svn_cmds
if (( $? == 0 )); then
_store_cache svn-cmds _svn_cmds
else
# Ensure we enter this block again on the next <TAB>.
unset _svn_cmds
fi
fi
fi