summaryrefslogtreecommitdiff
path: root/libbb/unicode.c
diff options
context:
space:
mode:
authorTomas Heinrich2010-05-16 20:46:53 +0200
committerDenys Vlasenko2010-05-16 20:46:53 +0200
commitb8909c52fe850d2731326534822164c2f5258bf5 (patch)
tree2e33d71a3caf8861b2380d8e07841dd0eab09a8a /libbb/unicode.c
parent0b7412e66b3d702557a2bf214752ff68d80fcda3 (diff)
downloadbusybox-b8909c52fe850d2731326534822164c2f5258bf5.zip
busybox-b8909c52fe850d2731326534822164c2f5258bf5.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/unicode.c b/libbb/unicode.c
index d1c6167..eb0ea61 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)
* This implementation assumes that wchar_t characters are encoded
* in ISO 10646.
*/
-static int wcwidth(unsigned ucs)
+int FAST_FUNC wcwidth(unsigned ucs)
{
# if LAST_SUPPORTED_WCHAR >= 0x300
/* sorted list of non-overlapping intervals of non-spacing characters */