commit 8b3266e83c1cf605655861ea8eb57c140f30580e
parent 0a8ec176e4c13c19db195b5f5b7bbe221aa22578
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 26 May 2005 02:46:42 +0000
fix inaccurate comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2540 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git 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);