Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pdDialogue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ function pdDialogue.window(text, startIndex, height, font)
]]--
font = font or gfx.getFont()

local result = {text[start_index]}
local result = {text[startIndex]}
local rows = pdDialogue.getRows(height, font) - 1

for index = 1, rows do
-- Check if index is out of range of the text
if start_index + index > #text then
if startIndex + index > #text then
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable i in line 77 is also undefined, but i was not sure if should be index or index + startIndex

Copy link
Author

@MarianoGnu MarianoGnu Aug 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot believes it should be index + startIndex

image

break
end

Expand Down