Skip to content

Commit

Permalink
Fix: control codes not flushing word
Browse files Browse the repository at this point in the history
Control codes now force a word flush.

Test-Notes: Ensure using a word after a control code without a space
does not appear malformed.
  • Loading branch information
Montoli committed May 7, 2024
1 parent 9e6a19a commit 1b656fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Data/Scripts/_RichTextMgr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function API.DisplayText(panel, text, options)
end
elseif c == subChar then
HandleControlCode(textData)
FlushWord(textData)
if textData.timeToStop then break end
else
-- regular letter. Add to the current word.
Expand Down

0 comments on commit 1b656fa

Please sign in to comment.