Merge pull request #331 from Xertis/main

console bug fix
This commit is contained in:
MihailRis 2024-10-26 22:57:43 +03:00 committed by GitHub
commit 868b69db90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ function on_history_up()
end
function on_history_down()
if history_pointer == #history-1 then
if history_pointer >= #history-1 then
return
end
history_pointer = history_pointer + 1