diff options
author | Tomas Heinrich <heinrich.tomas@gmail.com> | 2010-05-16 20:46:53 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-16 20:46:53 +0200 |
commit | b8909c52fe850d2731326534822164c2f5258bf5 (patch) | |
tree | 2e33d71a3caf8861b2380d8e07841dd0eab09a8a /libbb/unicode.c | |
parent | 0b7412e66b3d702557a2bf214752ff68d80fcda3 (diff) | |
download | busybox-w32-b8909c52fe850d2731326534822164c2f5258bf5.tar.gz busybox-w32-b8909c52fe850d2731326534822164c2f5258bf5.tar.bz2 busybox-w32-b8909c52fe850d2731326534822164c2f5258bf5.zip |
lineedit: partially fix wide and combining chars editing
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/unicode.c')
-rw-r--r-- | libbb/unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/unicode.c b/libbb/unicode.c index d1c6167c7..eb0ea6129 100644 --- a/libbb/unicode.c +++ b/libbb/unicode.c | |||
@@ -418,7 +418,7 @@ static int in_uint16_table(unsigned ucs, const uint16_t *table, unsigned max) | |||
418 | * This implementation assumes that wchar_t characters are encoded | 418 | * This implementation assumes that wchar_t characters are encoded |
419 | * in ISO 10646. | 419 | * in ISO 10646. |
420 | */ | 420 | */ |
421 | static int wcwidth(unsigned ucs) | 421 | int FAST_FUNC wcwidth(unsigned ucs) |
422 | { | 422 | { |
423 | # if LAST_SUPPORTED_WCHAR >= 0x300 | 423 | # if LAST_SUPPORTED_WCHAR >= 0x300 |
424 | /* sorted list of non-overlapping intervals of non-spacing characters */ | 424 | /* sorted list of non-overlapping intervals of non-spacing characters */ |