Follow-up to d310910, use EOF instead of -1 in calls to reposition()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2020-01-05 07:52:12 +01:00
parent 6c74203cbd
commit f619d9d788

View File

@ -673,7 +673,7 @@ static el_status_t do_insert_hist(const char *p)
clear_line();
rl_point = 0;
reposition(-1);
reposition(EOF);
rl_end = 0;
return insert_string(p);
@ -921,7 +921,7 @@ static el_status_t kill_line(void)
if (Repeat < rl_point) {
i = rl_point;
rl_point = Repeat;
reposition(-1);
reposition(EOF);
delete_string(i - rl_point);
} else if (Repeat > rl_point) {
right(CSmove);