commit | 62f234ce3b3fb10633f8bbb1d4159cd5c179345a | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Tue Oct 20 17:33:33 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Tue Oct 20 17:33:33 2009 +0000 |
tree | ac8494b4eadbe71c3b7f7aabd30a725035676f20 | |
parent | 387f4d42ccfb9aab1b8d5f10176dac2a3209c3fa [diff] |
UTF-8 combined character fixes. Thai can have treble combinations (1 x width=1 then 2 x width=0) so bump the UTF-8 cell data size to 9 and alter the code to allow this. Also break off the combining code into a separate function, handle any further combining beyond the buffer size by replacing the character with _s, and when redrawing the UTF-8 character don't assume the first part has just been printed, redraw the entire line.