Revision: 5247 http://geany.svn.sourceforge.net/geany/?rev=5247&view=rev Author: ntrel Date: 2010-09-21 16:25:10 +0000 (Tue, 21 Sep 2010)
Log Message: ----------- Make Find Selected commands repeat the last search if the selection was lost.
Modified Paths: -------------- trunk/ChangeLog trunk/src/search.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-09-21 16:16:15 UTC (rev 5246) +++ trunk/ChangeLog 2010-09-21 16:25:10 UTC (rev 5247) @@ -5,6 +5,9 @@ Rename popup editor menu item Commands -> Edit. * src/callbacks.c, src/search.c, src/search.h: Move find_again() to search.c. + * src/search.c: + Make Find Selected commands repeat the last search if the selection + was lost.
2010-09-20 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/search.c =================================================================== --- trunk/src/search.c 2010-09-21 16:16:15 UTC (rev 5246) +++ trunk/src/search.c 2010-09-21 16:25:10 UTC (rev 5247) @@ -341,6 +341,11 @@ editor_display_current_line(doc->editor, 0.3F); g_free(s); } + else + { + /* Repeat last search (in case selection was lost) */ + search_find_again(search_backwards); + } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.