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++; history.index++;
textCur.textContent = history.list[history.index]; textCur.textContent = history.list[history.index];
cursorPosition = textCur.textContent.length; cursorPosition = textCur.textContent.length;
} else { } else if (history.index < history.list.length) {
history.index++; history.index++;
textCur.textContent = ""; textCur.textContent = "";
cursorPosition = 0; cursorPosition = 0;