Localize $classpath in _java_find_sourcepath so completions don't have to.

This commit is contained in:
Ville Skyttä 2011-04-20 22:06:56 +03:00
parent 22c8330099
commit 6ea5b13d4d

View File

@ -44,6 +44,7 @@ _java_find_sourcepath()
# default to classpath
if [ -z "$sourcepath" ]; then
local classpath
_java_find_classpath
sourcepath=$classpath
fi
@ -242,7 +243,7 @@ have javadoc &&
_javadoc()
{
COMPREPLY=()
local cur prev classpath
local cur prev
_get_comp_words_by_ref cur prev