karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [06/50] [abbrv] karaf git commit: Remove additional space printed after completion
Date Mon, 22 Aug 2016 09:30:04 GMT
Remove additional space printed after completion

Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/740e8185
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/740e8185
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/740e8185

Branch: refs/heads/master
Commit: 740e8185151de18862adeefe71eb8ec772ab79e1
Parents: cf07bcc
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Tue Jul 19 11:21:16 2016 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Mon Aug 22 11:29:19 2016 +0200

----------------------------------------------------------------------
 .../apache/karaf/shell/support/completers/StringsCompleter.java | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/740e8185/shell/core/src/main/java/org/apache/karaf/shell/support/completers/StringsCompleter.java
----------------------------------------------------------------------
diff --git a/shell/core/src/main/java/org/apache/karaf/shell/support/completers/StringsCompleter.java
b/shell/core/src/main/java/org/apache/karaf/shell/support/completers/StringsCompleter.java
index f1f0f41..33364fa 100644
--- a/shell/core/src/main/java/org/apache/karaf/shell/support/completers/StringsCompleter.java
+++ b/shell/core/src/main/java/org/apache/karaf/shell/support/completers/StringsCompleter.java
@@ -104,11 +104,6 @@ public class StringsCompleter
             candidates.add(match);
         }
 
-        if (candidates.size() == 1) {
-            // noinspection unchecked
-            candidates.set(0, candidates.get(0) + " ");
-        }
-
         return candidates.isEmpty() ? -1 : commandLine.getBufferPosition() - commandLine.getArgumentPosition();
     }
 }


Mime
View raw message