history unlimited arrow down bugfix
This commit is contained in:
parent
c2cf9906a3
commit
2bbd9dde65
@ -133,7 +133,7 @@ document.addEventListener("keydown", e => {
|
||||
history.index++;
|
||||
textCur.textContent = history.list[history.index];
|
||||
cursorPosition = textCur.textContent.length;
|
||||
} else {
|
||||
} else if (history.index < history.list.length) {
|
||||
history.index++;
|
||||
textCur.textContent = "";
|
||||
cursorPosition = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user