Skip to content

Commit

Permalink
fix(java): localize cur
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga authored and scop committed Jan 3, 2024
1 parent f345ce5 commit ec0068d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ _comp_cmd_java__classes()
local -a classpaths=("${REPLY[@]}")

# convert package syntax to path syntax
cur=${cur//.//}
local cur=${cur//.//}
# parse each classpath element for classes
for i in "${classpaths[@]}"; do
if [[ $i == *.@(jar|zip) && -r $i ]]; then
Expand Down

0 comments on commit ec0068d

Please sign in to comment.