From 8b3266e83c1cf605655861ea8eb57c140f30580e Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 26 May 2005 02:46:42 +0000 Subject: [PATCH] fix inaccurate comments git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2540 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/search.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/search.c b/src/search.c index 928f37dd..89e816ec 100644 --- a/src/search.c +++ b/src/search.c @@ -1211,8 +1211,8 @@ void update_history(filestruct **h, filestruct **hage, filestruct *h = *hbot; } -/* Return the string in the history list just before h, or NULL if there - * isn't one. */ +/* Move h to the string in the history list just before it, and return + * that string. If there isn't one, don't move h and return NULL. */ char *get_history_older(filestruct **h) { assert(h != NULL); @@ -1225,8 +1225,8 @@ char *get_history_older(filestruct **h) return (*h)->data; } -/* Return the string in the history list just after h, or NULL if there - * isn't one. */ +/* Move h to the string in the history list just after it, and return + * that string. If there isn't one, don't move h and return NULL. */ char *get_history_newer(filestruct **h) { assert(h != NULL); -- 2.39.5