Allow case sensitive replace when the replace string varies only

in case.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2196 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-01-29 12:21:02 +00:00
parent cdf447647f
commit 5994857b42
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-01-29 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/search.c:
Allow case sensitive replace when the replace string varies only
in case.
2008-01-28 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* plugins/pluginmacros.h, src/plugindata.h, plugins/*.c:

View File

@ -911,7 +911,7 @@ on_replace_dialog_response(GtkDialog *dialog, gint response, gpointer user_data)
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 ((response != GEANY_RESPONSE_FIND) && fl1 && (strcasecmp(find, replace) == 0))
if ((response != GEANY_RESPONSE_FIND) && fl1 && (strcmp(find, replace) == 0))
{
utils_beep();
gtk_widget_grab_focus(GTK_WIDGET(GTK_BIN(lookup_widget(widgets.replace_dialog, "entry_find"))->child));