From af61b8661aef7a7922636ad9b6986314f087ba6d Mon Sep 17 00:00:00 2001 From: WahPlus Date: Mon, 15 Jun 2026 19:14:19 +0300 Subject: [PATCH] terminal: Fixed #73 --- halyde/kernel/modules/terminal.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/halyde/kernel/modules/terminal.lua b/halyde/kernel/modules/terminal.lua index 22e65c7..4c8e048 100644 --- a/halyde/kernel/modules/terminal.lua +++ b/halyde/kernel/modules/terminal.lua @@ -284,6 +284,7 @@ function module.init() local function updateHistory() if not options.readHistoryType then return end + if historyIdx ~= #readHistory[options.readHistoryType] then return end readHistory[options.readHistoryType][historyIdx]=text end @@ -474,7 +475,7 @@ function module.init() table.remove(readHistory[options.readHistoryType],#readHistory[options.readHistoryType]) end if historyIdx<#readHistory[options.readHistoryType] then - table.remove(readHistory[options.readHistoryType],historyIdx) + -- table.remove(readHistory[options.readHistoryType],historyIdx) table.insert(readHistory[options.readHistoryType],text) end while #readHistory[options.readHistoryType] > 50 do