Do not re-position when deleting the last char

This commit is contained in:
Abit
2019-05-04 23:00:36 +02:00
committed by GitHub
parent 385cd77e9b
commit 0a7c74676c

View File

@@ -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)