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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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