1 parent
31ad72567a
commit
d7ecd75678
9 files changed
+40
-35
No files matched your search
@@ -132,8 +132,10 @@ public final class HistoryTextKeyListener extends KeyAdapter {
|
||||
// Lower arrow retrieves next commands
|
||||
if (keyCode == SWT.ARROW_DOWN) {
|
||||
if (currentIndex <= 0) {
|
||||
currentIndex=-1;
|
||||
console.setInput(EMPTY);
|
||||
if (currentIndex == 0) {
|
||||
console.setInput(EMPTY);
|
||||
}
|
||||
currentIndex = -1;
|
||||
} else {
|
||||
final String cmd = commands.get(commands.size() - (--currentIndex) - 1);
|
||||
console.setInput(cmd);
|
||||
|
||||
Reference in new issue
Block a user