nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] search & replace doesnt always clear ?


From: David Lawrence Ramsey
Subject: Re: [Nano-devel] search & replace doesnt always clear ?
Date: Sat, 02 Jul 2005 14:07:19 -0400
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)

Mike Frysinger wrote:

>sometimes i notice that when doing search & replace, the replace field
>is no longer cleared ?  is this a new feature or a bug ? :)

It's a bug, introduced by the history code overhaul.  (The odd part is
that the line I accidentally deleted was in a NANO_SMALL #ifdef in
1.3.7, even though it wasn't really part of the history code.)  The
attached patch should fix it.

diff -ur nano-1.3.8/src/search.c nano-1.3.8-fixed/src/search.c
--- nano-1.3.8/src/search.c     2005-06-28 20:17:18.000000000 -0400
+++ nano-1.3.8-fixed/src/search.c       2005-07-02 14:02:52.000000000 -0400
@@ -907,6 +907,8 @@
        last_search = mallocstrcpy(last_search, answer);
     }
 
+    last_replace = mallocstrcpy(last_replace, "");
+
     i = statusq(FALSE, replace_list_2, last_replace,
 #ifndef NANO_SMALL
        &replace_history,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]