From 0a7c74676cad25ba51685bcd9a643ad422527f86 Mon Sep 17 00:00:00 2001 From: Abit Date: Sat, 4 May 2019 23:00:36 +0200 Subject: [PATCH] Do not re-position when deleting the last char --- src/editline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editline.c b/src/editline.c index c1a1c5e..a7368fd 100644 --- a/src/editline.c +++ b/src/editline.c @@ -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)