mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
parent
ac81ca6d4b
commit
3bbe0fcd69
@ -1025,6 +1025,15 @@ static el_status_t bk_word(void)
|
|||||||
return CSstay;
|
return CSstay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static el_status_t bk_kill_line(void)
|
||||||
|
{
|
||||||
|
beg_line();
|
||||||
|
if (old_point != rl_point)
|
||||||
|
return delete_string(old_point - rl_point);
|
||||||
|
|
||||||
|
return CSstay;
|
||||||
|
}
|
||||||
|
|
||||||
static el_status_t meta(void)
|
static el_status_t meta(void)
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
@ -1156,14 +1165,7 @@ static el_status_t tty_special(int c)
|
|||||||
return bk_del_char();
|
return bk_del_char();
|
||||||
|
|
||||||
if (c == rl_kill) {
|
if (c == rl_kill) {
|
||||||
if (rl_point != 0) {
|
return bk_kill_line();
|
||||||
old_point = rl_point;
|
|
||||||
rl_point = 0;
|
|
||||||
reposition(c);
|
|
||||||
}
|
|
||||||
Repeat = NO_ARG;
|
|
||||||
|
|
||||||
return kill_line();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_EOF
|
#ifdef CONFIG_EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user