Skip to content

Commit

Permalink
java: Complete *.war
Browse files Browse the repository at this point in the history
Closes #179
  • Loading branch information
martinda authored and scop committed Jan 10, 2018
1 parent 5b3e79e commit c1912bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion completions/java
Expand Up @@ -217,7 +217,7 @@ _java()
else
if [[ "$prev" == -jar ]]; then
# jar file completion
_filedir jar
_filedir '[jw]ar'
else
# classes completion
_java_classes
Expand Down
Empty file added test/fixtures/java/bashcomp.war
Empty file.
2 changes: 1 addition & 1 deletion test/lib/completions/java.exp
Expand Up @@ -44,7 +44,7 @@ assert_no_complete "java -cp \"\" "
sync_after_int


assert_complete "a/ bashcomp.jar" "java -jar $::srcdir/fixtures/java/"
assert_complete "a/ bashcomp.jar bashcomp.war" "java -jar $::srcdir/fixtures/java/"


sync_after_int
Expand Down

0 comments on commit c1912bf

Please sign in to comment.