ruffle
ruffle copied to clipboard
core: use char slicing instead of byte slicing
Fix a panic which can occur when pasting non-ASCII characters into a textbox. Use character slicing instead of byte slicing when limiting the length of the text being pasted in.
This fixes issue #17675.