Skip to content

Commit c068fca

Browse files
committed
javac: Complete -cp like -classpath
Fixes #109
1 parent b0ec56d commit c068fca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

completions/java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ _javac()
291291
_filedir -d
292292
return
293293
;;
294-
-classpath|-bootclasspath|-sourcepath|-extdirs)
294+
-cp|-classpath|-bootclasspath|-sourcepath|-extdirs)
295295
_java_path
296296
return
297297
;;

test/lib/completions/javac.exp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ setup
1212

1313

1414
assert_complete_any "javac "
15+
sync_after_int
1516

16-
17+
assert_complete "a/ bashcomp.jar" "javac -cp $::srcdir/fixtures/java/"
1718
sync_after_int
1819

1920

0 commit comments

Comments
 (0)