The fixes include:
-The display persistence setting is now saved and restored to its previous value instead of being disabled every time the method is called
-The cursor is moved to the end of the input string, allowing for pre-existing strings to be edited
-The cursor is now correctly constrained within the string (to length-1 to ensure there is always room for a terminating null; it didn't allow the final byte to be overwritten previously, but the cursor could invisibly be moved one byte past the end)
The fixes include: -The display persistence setting is now saved and restored to its previous value instead of being disabled every time the method is called -The cursor is moved to the end of the input string, allowing for pre-existing strings to be edited -The cursor is now correctly constrained within the string (to length-1 to ensure there is always room for a terminating null; it didn't allow the final byte to be overwritten previously, but the cursor could invisibly be moved one byte past the end)