До этих изменений, при попытке пролистать консоль вниз если консоль была пуста, выводилась ошибка
This commit is contained in:
Xertis 2024-10-26 22:50:14 +03:00 committed by GitHub
parent 84ba063908
commit bf429bdfd9
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