OSDN Git Service

lineedit: handle Ctrl-arrows
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 25 Oct 2009 22:50:56 +0000 (23:50 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 25 Oct 2009 22:50:56 +0000 (23:50 +0100)
commita17eeb847e66824c4d389751cc90415d3fc1c5a3
treea5dd027573c002641942191f8ae1f7c7b1f7429e
parent77c066ea5cf4b1ee606a81e48388ff0b1d019134
lineedit: handle Ctrl-arrows

function                                             old     new   delta
read_line_input                                     4629    4824    +195
BB_isalnum                                             -      39     +39
BB_ispunct                                             -      35     +35
BB_isspace                                             -      31     +31
static.esccmds                                        69      93     +24
vi_word_motion                                       165     162      -3
vi_back_motion                                       204     198      -6
vi_end_motion                                        172     163      -9
bb_iswspace                                           28       -     -28
bb_iswpunct                                           32       -     -32
bb_iswalnum                                           37       -     -37
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 5/8 up/down: 334/-129)          Total: 205 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/lineedit.c
libbb/read_key.c