From 54abd94d4866f3ea28b0d44e1c8baacacaea0378 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 9 Jan 2003 23:43:12 +0000 Subject: [PATCH] Fix broken meta keys screwing up previous answer, fix misplaced (?) #endif in nanogetstr git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1342 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- search.c | 8 ++------ winio.c | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/search.c b/search.c index 96111634..86a772aa 100644 --- a/search.c +++ b/search.c @@ -111,14 +111,10 @@ int search_init(int replacing) search_init_globals(); if (backupstring == NULL) -#ifndef NANO_SMALL - backupstring = mallocstrcpy(backupstring, search_history.current->data); -#else - backupstring = mallocstrcpy(backupstring, last_search); -#endif + backupstring = mallocstrcpy(backupstring, ""); /* NEW TEST */ - backupstring = mallocstrcpy(backupstring, ""); + #ifndef NANO_SMALL search_history.current = (historytype *)&search_history.next; #endif diff --git a/winio.c b/winio.c index c94a62c0..b0b9fb4e 100644 --- a/winio.c +++ b/winio.c @@ -369,8 +369,8 @@ int nanogetstr(int allowtabs, const char *buf, const char *def, } x = xend; } - break; #endif + break; case KEY_DOWN: #ifndef NANO_SMALL if (history_list) { -- 2.39.5