nano

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

commit 340e5ca8816c752972b3c6bcf4c1f286982d4c7c
parent 75f4b7cb84e14cac49b467680e304e22f4639f54
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Tue,  3 May 2005 21:42:04 +0000

revert one last change that was causing breakage


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

Diffstat:
Msrc/winio.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -2557,11 +2557,15 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *def, currentbuf = NULL; use_cb = 0; /* Otherwise, get the older search from the history - * list and save it in answer. */ + * list and save it in answer. If there is no older + * search, blank out answer. */ } else if ((history = get_history_older(history_list)) != NULL) { answer = mallocstrcpy(answer, history); answer_len = strlen(history); + } else { + answer = mallocstrcpy(answer, ""); + answer_len = 0; } statusbar_x = answer_len;