From 86f7cd390ed8e186e4a281573a28eb1dfd376997 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Sun, 28 Feb 2010 19:30:33 +0000 Subject: %t didn't properly remove trailing spaces from the end of the prompt. patch from daniel malament in pr 6235 ok millert@ --- usr.bin/less/prompt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin') diff --git a/usr.bin/less/prompt.c b/usr.bin/less/prompt.c index ddc5eaca025..fe16cf06654 100644 --- a/usr.bin/less/prompt.c +++ b/usr.bin/less/prompt.c @@ -349,6 +349,7 @@ protochar(c, where, iseditproto) case 't': /* Truncate trailing spaces in the message */ while (mp > message && mp[-1] == ' ') mp--; + *mp = '\0'; break; case 'T': /* Type of list */ #if TAGS -- cgit v1.2.3