소스 검색

Backport issue 1696


git-svn-id: http://svn.dmdirc.com/branches/0.6@4600 00569f92-eb28-0410-84fd-f71c24880f
remotes/0.6
Chris Smith 16 년 전
부모
커밋
28142e0450
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8
    8
      src/com/dmdirc/commandparser/commands/global/AliasCommand.java

+ 8
- 8
src/com/dmdirc/commandparser/commands/global/AliasCommand.java 파일 보기

@@ -121,21 +121,21 @@ public final class AliasCommand extends GlobalCommand implements IntelligentComm
121 121
 
122 122
     /** {@inheritDoc} */
123 123
     @Override
124
-    public AdditionalTabTargets getSuggestions(final int arg, final List<String> previousArgs) {
125
-        final AdditionalTabTargets res = new AdditionalTabTargets();
126
-        
124
+    public AdditionalTabTargets getSuggestions(final int arg,
125
+                                               final List<String> previousArgs) {
126
+        final AdditionalTabTargets res = new AdditionalTabTargets().excludeAll();
127
+
127 128
         if (arg == 0) {
128 129
             res.add("--remove");
129
-            res.excludeAll();
130 130
         } else if (arg == 1 && previousArgs.get(0).equals("--remove")) {
131 131
             for (Action alias : AliasWrapper.getAliasWrapper()) {
132
-                res.add(alias.getName());
133
-            }   
132
+                res.add(AliasWrapper.getCommandName(alias));
133
+            }
134 134
         } else if (arg >= 1 && !previousArgs.get(0).equals("--remove")) {
135 135
             return TabCompleter.getIntelligentResults(arg, previousArgs, 1);
136 136
         }
137
-        
137
+
138 138
         return res;
139
-    } 
139
+    }
140 140
     
141 141
 }

Loading…
취소
저장