commit | c643ac48278b793d17d0e8edd140af6d9d68128a | [log] [download] |
---|---|---|
author | Tiago Cunha <tcunha@gmx.com> | Fri Oct 23 17:13:10 2009 +0000 |
committer | Tiago Cunha <tcunha@gmx.com> | Fri Oct 23 17:13:10 2009 +0000 |
tree | fc972e85a483adfe0858d3a981d681dbbad783a0 | |
parent | 97e02eae7d86c3c5b5c8610d3bd48c0fa1d0398e [diff] |
Sync OpenBSD patchset 420: 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.