The behaviour is entirely dependent on the Windows editbox. When I test it out here, it has a maximum single line length of 4096 characters, wraps the text when it reaches that length and appears to display it correctly on the next line.