|
@@ -36,6 +36,7 @@ import java.util.Map;
|
36
|
36
|
|
37
|
37
|
/**
|
38
|
38
|
* The tab completer handles a user's request to tab complete some word.
|
|
39
|
+ *
|
39
|
40
|
* @author chris
|
40
|
41
|
*/
|
41
|
42
|
public final class TabCompleter implements Serializable {
|
|
@@ -52,6 +53,7 @@ public final class TabCompleter implements Serializable {
|
52
|
53
|
* from this completer.
|
53
|
54
|
*/
|
54
|
55
|
private TabCompleter parent;
|
|
56
|
+
|
55
|
57
|
/**
|
56
|
58
|
* The entries in this completer.
|
57
|
59
|
*/
|
|
@@ -88,6 +90,12 @@ public final class TabCompleter implements Serializable {
|
88
|
90
|
|
89
|
91
|
final boolean caseSensitive = IdentityManager.getGlobalConfig()
|
90
|
92
|
.getOptionBool("tabcompletion", "casesensitive");
|
|
93
|
+ final boolean allowEmpty = IdentityManager.getGlobalConfig()
|
|
94
|
+ .getOptionBool("tabcompletion", "allowempty");
|
|
95
|
+
|
|
96
|
+ if (partial.isEmpty() && !allowEmpty) {
|
|
97
|
+ return result;
|
|
98
|
+ }
|
91
|
99
|
|
92
|
100
|
if (additionals != null) {
|
93
|
101
|
targets.safeGet(TabCompletionType.ADDITIONAL).addAll(additionals);
|