1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-14 01:51:22 +02:00

10999: compinstall fixes

This commit is contained in:
Peter Stephenson 2000-04-28 09:31:54 +00:00
parent b19f915a4f
commit bcb9190ff9
2 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2000-04-28 Peter Stephenson <pws@cambridgesiliconradio.com>
* pws: 10999: Completion/Core/compinstall: some idiot didn't
get searching of alternative files for definitions to work properly.
2000-04-28 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
* 10992: Src/Zle/complist.c: avoid wrapping around both

View file

@ -69,9 +69,19 @@ If you have some already defined by compinstall, edit the name of the
file where these can be found. Note that this will only work if they
are exactly the form in which compinstall inserted them. If you leave
the line as it is, or empty, I won't search."
vared -ch -p 'file> ' newifile
[[ -z $newifile || $ifile = $newifile ]] && foundold=false
while true; do
vared -ch -p 'file> ' newifile
if [[ -n $newifile && $ifile != $newifile ]]; then
if __ci_test_ifile $newifile; then
foundold=true
break
fi
print "I couldn't find any definitions there. Edit a new filename, or
leave the line blank to ignore it."
fi
done
fi
ifile=$newifile
if [[ $foundold = true ]]; then
sed -n "/^[ ]*$startline/,/^[ ]*$endline/p" $ifile |