nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 7f4dd35406b79b5c1d7aa695b2b96d366773c9fa
parent 8f5e50991b9986d241af8b6ec97ba239490f476c
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sun,  8 May 2005 17:08:51 +0000

another cosmetic fix


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2503 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/search.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c @@ -1150,9 +1150,10 @@ void history_init(void) /* find first node containing string *s in history list *h */ historytype *find_node(historytype *h, const char *s) { - for (; h->next != NULL; h = h->next) + for (; h->next != NULL; h = h->next) { if (strcmp(s, h->data) == 0) return h; + } return NULL; }