]> git.armaanb.net Git - st.git/commit
Fix tputc control code handling
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 28 Apr 2014 16:32:09 +0000 (18:32 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 28 Apr 2014 16:32:09 +0000 (18:32 +0200)
commit3764f38fc805a8846bd18f1d555a10227fd14e29
tree2cdc4ea292102e561d4c2a5ae645cecef3489302
parent53105cf74fde46229912275c073f8c0f219b05bb
Fix tputc control code handling

The patch 53105cf modified how control codes were detected, because
it tried to handle also C1 control codes (0x80-0x9f), that have
upper bit to 1, so they are multi byte character in utf8.
Code was checking the value of width in order to known that after
decoding the unicode point had a width of 1 byte, but it as incorrect
because this width is the columnb width.
st.c