mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 12:31:45 +08:00
Do not re-position when deleting the last char
This commit is contained in:
parent
385cd77e9b
commit
0a7c74676c
@ -771,7 +771,7 @@ static el_status_t delete_string(int count)
|
|||||||
}
|
}
|
||||||
tty_backn(i);
|
tty_backn(i);
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
return CSmove;
|
return CSstay;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rl_point + count > rl_end && (count = rl_end - rl_point) <= 0)
|
if (rl_point + count > rl_end && (count = rl_end - rl_point) <= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user