projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ffd710
)
lineedit: fix Alt-D when cursor==0
author
Cliff Frey
<cliff@meraki.com>
Tue, 7 Aug 2012 15:59:40 +0000
(17:59 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 7 Aug 2012 15:59:40 +0000
(17:59 +0200)
Signed-off-by: Cliff Frey <cliff@meraki.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c
patch
|
blob
|
history
diff --git
a/libbb/lineedit.c
b/libbb/lineedit.c
index b89748a1c64f4df14e003e2649ac95cd138e479e..92bea856e4bd9fcb70222726f2ab8d673ae76a2d 100644
(file)
--- a/
libbb/lineedit.c
+++ b/
libbb/lineedit.c
@@
-2527,9
+2527,9
@@
int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman
/* Delete word forward */
int nc, sc = cursor;
ctrl_right();
- nc = cursor;
- input_backward(
cursor - s
c);
- while (--nc >=
cursor
)
+ nc = cursor
- sc
;
+ input_backward(
n
c);
+ while (--nc >=
0
)
input_delete(1);
break;
}