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