Localize $classpath in _java_find_sourcepath so completions don't have to.
This commit is contained in:
parent
22c8330099
commit
6ea5b13d4d
@ -44,6 +44,7 @@ _java_find_sourcepath()
|
|||||||
|
|
||||||
# default to classpath
|
# default to classpath
|
||||||
if [ -z "$sourcepath" ]; then
|
if [ -z "$sourcepath" ]; then
|
||||||
|
local classpath
|
||||||
_java_find_classpath
|
_java_find_classpath
|
||||||
sourcepath=$classpath
|
sourcepath=$classpath
|
||||||
fi
|
fi
|
||||||
@ -242,7 +243,7 @@ have javadoc &&
|
|||||||
_javadoc()
|
_javadoc()
|
||||||
{
|
{
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
local cur prev classpath
|
local cur prev
|
||||||
|
|
||||||
_get_comp_words_by_ref cur prev
|
_get_comp_words_by_ref cur prev
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user