Commit 54abd94d authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
No related merge requests found
Showing with 3 additions and 7 deletions
+3 -7
......@@ -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
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment