Kaydet (Commit) d39510f4 authored tarafından Nick Treleaven's avatar Nick Treleaven

Allow Find even when the replace text is the same

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@678 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst e76a10f5
2006-08-07 Nick Treleaven <nick.treleaven@btinternet.com>
* src/callbacks.c: Allow Find even when the replace text is the same.
2006-08-06 Nick Treleaven <nick.treleaven@btinternet.com>
* doc/geany.docbook:
......
......@@ -1957,7 +1957,7 @@ on_replace_dialog_response (GtkDialog *dialog,
find = g_strdup(gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(entry_find)))));
replace = g_strdup(gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(entry_replace)))));
if ((! fl1) && (strcasecmp(find, replace) == 0))
if ((response != GEANY_RESPONSE_FIND) && (! fl1) && (strcasecmp(find, replace) == 0))
{
utils_beep();
gtk_widget_grab_focus(GTK_WIDGET(GTK_BIN(lookup_widget(app->replace_dialog, "entry_find"))->child));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment