lineedit: fix column display for wide and combining chars in TAB completion
authorTomas Heinrich <heinrich.tomas@gmail.com>
Tue, 1 Jun 2010 06:33:18 +0000 (08:33 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 1 Jun 2010 06:33:18 +0000 (08:33 +0200)
commit11bcf4b22449d08b61617183c1951db98457653a
tree34d1983e1f1b5eb38d8c764ab9f2b406404b862e
parent39a04f71ca8ccf81de2cdbd538df519cf34ef2e6
lineedit: fix column display for wide and combining chars in TAB completion

function                                             old     new   delta
unicode_strwidth                                       -      20     +20
read_line_input                                     4945    4953      +8
unicode_strlen                                        31       -     -31
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/0 up/down: 28/-31)             Total: -3 bytes

Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/unicode.h
libbb/lineedit.c
libbb/unicode.c