mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 21:01:24 +03:00
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
This commit is contained in:
parent
8031f83422
commit
54abd94d48
8
search.c
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user