]> git.wh0rd.org Git - nano.git/commitdiff
Using the Search key bindings also during a Re-search, to enable cancelling.
authorBenno Schulenberg <bensberg@justemail.net>
Thu, 17 Mar 2016 09:12:30 +0000 (09:12 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Thu, 17 Mar 2016 09:12:30 +0000 (09:12 +0000)
This fixes Savannah bug #47159.

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

ChangeLog
src/search.c

index 9c836ea17833a65c26010c01dc25142a89da1654..0e85cc407e55eef682af4c353630a209f63c5ec3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-03-17  Benno Schulenberg  <bensberg@justemail.net>
+       * src/search.c (do_research): Use the Search key bindings also during
+       a Re-search, to enable cancelling.  This fixes Savannah bug #47159.
+
 2016-03-14  Benno Schulenberg  <bensberg@justemail.net>
        * src/color.c (color_update): Don't dereference a possible NULL.
        * src/rcfile.c (parse_colors): Make error message equal to others.
index 48ffb9f50f4df88950b73a4345de8e1fd79b74fd..38c0bceb45a1f03d312f0a04a2c0a66009ece26c 100644 (file)
@@ -522,6 +522,9 @@ void do_research(void)
            return;
 #endif
 
+       /* Use the search-menu key bindings, to allow cancelling. */
+       currmenu = MWHEREIS;
+
        findnextstr_wrap_reset();
        didfind = findnextstr(
 #ifndef DISABLE_SPELLER