From bf429bdfd966775a73f2c361ecad77ef4d5925c0 Mon Sep 17 00:00:00 2001 From: Xertis <118364459+Xertis@users.noreply.github.com> Date: Sat, 26 Oct 2024 22:50:14 +0300 Subject: [PATCH] bug fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit До этих изменений, при попытке пролистать консоль вниз если консоль была пуста, выводилась ошибка --- res/layouts/console.xml.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/layouts/console.xml.lua b/res/layouts/console.xml.lua index 819ac1fd..597dfcb7 100644 --- a/res/layouts/console.xml.lua +++ b/res/layouts/console.xml.lua @@ -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