diff --git a/src/hdb.js b/src/hdb.js index f334586b0..c9ccbffd4 100644 --- a/src/hdb.js +++ b/src/hdb.js @@ -339,7 +339,7 @@ decrement @data-hist else if event.key is 'ArrowDown' and @data-hist < 0 increment @data-hist - end end + end set #console-input.value to hdb.consoleHistory[hdb.consoleHistory.length + @data-hist as Int] or oldContent halt default