Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
emmanuel committed 2018-10-15 12:01:10 -04:00
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);