mirror of
https://github.com/troglobit/editline.git
synced 2025-09-15 15:58: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);
|
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)
|
||||||
|
Reference in New Issue
Block a user