author | Max Kellermann <max@duempel.org> | |
Mon, 6 Oct 2008 15:03:31 +0000 (17:03 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 6 Oct 2008 15:03:31 +0000 (17:03 +0200) | ||
commit | 169c8fc6c4b7b92b9ba32eebc90ca7b5b90d1cf9 | |
tree | 0921a448de85414bf5fb8458af5ef27e80c8e89a | tree | snapshot |
parent | 36db27016bbb60534c14692861f9490cde4a6967 | commit | diff |
wreadln: support wide characters
wreadln() didn't distinguish narrow from wide characters, which
resulted in display corruption. This patch adds a lot of internal
conversions between byte positions, screen positions and character
position, which hopefully fixes all these bugs. Since these
conversions are quite expensive, the code should be revised and
optimized.
wreadln() didn't distinguish narrow from wide characters, which
resulted in display corruption. This patch adds a lot of internal
conversions between byte positions, screen positions and character
position, which hopefully fixes all these bugs. Since these
conversions are quite expensive, the code should be revised and
optimized.
src/wreadln.c | diff | blob | history |