fix: index calculation
This commit is contained in:
@@ -361,7 +361,7 @@ function drawCommandBar(w, y)
|
|||||||
|
|
||||||
term.write("$ ")
|
term.write("$ ")
|
||||||
|
|
||||||
local startingIndex = commandBuffer:len() - w - 3
|
local startingIndex = commandBuffer:len() - w + 3
|
||||||
if startingIndex < 0 then
|
if startingIndex < 0 then
|
||||||
startingIndex = 0
|
startingIndex = 0
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user