nano

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

commit 8fda94246be1f7c5719438bb0c2c78949f1d8ffa
parent 1addd601bc9baeda458313b732b367b2bf56d939
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri,  3 Jun 2005 20:18:46 +0000

remove erroneous if block in update_history() preventing the history
list position from being properly moved to the bottom in some cases


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

Diffstat:
Msrc/search.c | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/search.c b/src/search.c @@ -1181,11 +1181,6 @@ void update_history(filestruct **h, const char *s) if (p != NULL) { filestruct *foo, *bar; - /* If the string is at the current position, don't do - * anything. */ - if (p == *h) - return; - /* If the string is at the beginning, move the beginning down to * the next string. */ if (p == *hage)