]> git.wh0rd.org Git - nano.git/commitdiff
remove erroneous if block in update_history() preventing the history
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 3 Jun 2005 20:18:46 +0000 (20:18 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 3 Jun 2005 20:18:46 +0000 (20:18 +0000)
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

src/search.c

index 1fac1688b6b91a6267d883086ff345b21d93c9a4..688acb71c70b00ddb66dadeb6a2cc582eea80cae 100644 (file)
@@ -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)