From 47ae0d764e7654aaab60b855499db36c4ac7ea83 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 3 Jun 2005 14:30:52 +0000 Subject: [PATCH] remove now-unnecessary null_at() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2583 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/search.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/search.c b/src/search.c index 66e8190f..58af5437 100644 --- a/src/search.c +++ b/src/search.c @@ -1252,8 +1252,8 @@ char *get_history_newer(filestruct **h) #ifndef DISABLE_TABCOMP /* Move h to the next string that's a tab completion of the string s, * looking at only the first len characters of s, and return that - * string. If there isn't one, or if len is 0, don't move h, truncate s - * to len characters, and return s. */ + * string. If there isn't one, or if len is 0, don't move h and return + * s. */ char *get_history_completion(filestruct **h, char *s, size_t len) { assert(s != NULL); @@ -1292,10 +1292,7 @@ char *get_history_completion(filestruct **h, char *s, size_t len) } } - /* If we're here, we didn't find a match, or len is 0. Truncate s - * to len characters, and return it. */ - null_at(&s, len); - + /* If we're here, we didn't find a match, or len is 0. Return s. */ return s; } #endif -- 2.39.5