history unlimited arrow down bugfix

This commit is contained in:
Baipyrus 2023-01-16 11:08:21 +01:00
parent c2cf9906a3
commit 2bbd9dde65

View File

@ -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;