Skip to content

Commit 3818ee6

Browse files
committed
fix(java): localize cur not to affect outside the function
1 parent c180da0 commit 3818ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ _comp_cmd_java__packages()
112112
((${#sourcepath[@]})) || return 0
113113

114114
# convert package syntax to path syntax
115-
cur=${cur//.//}
115+
local cur=${cur//.//}
116116
# parse each sourcepath element for packages
117117
for i in "${sourcepath[@]}"; do
118118
if [[ -d $i ]]; then

0 commit comments

Comments
 (0)