Index: /trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/ConsoleTabComposite.java
===================================================================
--- /trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/ConsoleTabComposite.java	(revision 2045)
+++ /trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/ConsoleTabComposite.java	(revision 2046)
@@ -53,4 +53,6 @@
 
     protected java.util.List<String> commandHistory = new LinkedList<String>();
+    
+    protected int commandHistoryIndex = 0;
 
     protected Text textCommand;
@@ -73,4 +75,5 @@
     public void commandNotification(String command) {
         commandHistory.add(command);
+        commandHistoryIndex = commandHistory.size();
     }
 
@@ -183,32 +186,18 @@
     
     private void setToPreviousCommand() {
-        String currentCommand = textCommand.getText().trim();
-        
-        int index = 0;
-        for (index = 0; index < commandHistory.size(); index++) {
-            if (currentCommand.equals(commandHistory.get(index))) {
-                break;
-            }
-        }
-        
-        if (index > 0) {
-            textCommand.setText(commandHistory.get(index - 1));
-            textCommand.setSelection(commandHistory.get(index - 1).length());
+        if (commandHistoryIndex > 0) {
+            commandHistoryIndex--;
+            
+            textCommand.setText(commandHistory.get(commandHistoryIndex));
+            textCommand.setSelection(commandHistory.get(commandHistoryIndex).length());
         }
     }
 
     private void setToNextCommand() {
-        String currentCommand = textCommand.getText().trim();
-        
-        int index = 0;
-        for (index = 0; index < commandHistory.size(); index++) {
-            if (currentCommand.equals(commandHistory.get(index))) {
-                break;
-            }
-        }
-        
-        if (index < (commandHistory.size() - 1)) {
-            textCommand.setText(commandHistory.get(index + 1));
-            textCommand.setSelection(commandHistory.get(index + 1).length());
+        if (commandHistoryIndex < (commandHistory.size() - 1)) {
+            commandHistoryIndex++;
+            
+            textCommand.setText(commandHistory.get(commandHistoryIndex));
+            textCommand.setSelection(commandHistory.get(commandHistoryIndex).length());
         }
     }
