Browse Source

fix(mvn): fix listing modules in completion (#10586)

Marc Cornellà 2 years ago
parent
commit
aaebe4c890
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/mvn/mvn.plugin.zsh

+ 1 - 1
plugins/mvn/mvn.plugin.zsh

@@ -117,7 +117,7 @@ function listMavenCompletions {
   done
 
   # List modules
-  modules=($(find **/pom.xml -type f | grep -v '/target/classes/META-INF/' | grep '/pom.xml' |sed 's|\(.*\)/pom\.xml|\1|'))
+  modules=($(print -l **/pom.xml(-.N:h) | grep -v '/target/classes/META-INF/'))
 
   reply=(
     # common lifecycle