terminal: Fixed #73
This commit is contained in:
@@ -284,6 +284,7 @@ function module.init()
|
|||||||
|
|
||||||
local function updateHistory()
|
local function updateHistory()
|
||||||
if not options.readHistoryType then return end
|
if not options.readHistoryType then return end
|
||||||
|
if historyIdx ~= #readHistory[options.readHistoryType] then return end
|
||||||
readHistory[options.readHistoryType][historyIdx]=text
|
readHistory[options.readHistoryType][historyIdx]=text
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -474,7 +475,7 @@ function module.init()
|
|||||||
table.remove(readHistory[options.readHistoryType],#readHistory[options.readHistoryType])
|
table.remove(readHistory[options.readHistoryType],#readHistory[options.readHistoryType])
|
||||||
end
|
end
|
||||||
if historyIdx<#readHistory[options.readHistoryType] then
|
if historyIdx<#readHistory[options.readHistoryType] then
|
||||||
table.remove(readHistory[options.readHistoryType],historyIdx)
|
-- table.remove(readHistory[options.readHistoryType],historyIdx)
|
||||||
table.insert(readHistory[options.readHistoryType],text)
|
table.insert(readHistory[options.readHistoryType],text)
|
||||||
end
|
end
|
||||||
while #readHistory[options.readHistoryType] > 50 do
|
while #readHistory[options.readHistoryType] > 50 do
|
||||||
|
|||||||
Reference in New Issue
Block a user