diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2009-02-08 21:46:56 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2009-02-08 21:46:56 -0500 |
commit | 638b667398201d00989c055d90637ffce20bd1d3 (patch) | |
tree | ac5db3b8b051945a73e823d3bd777dd3418cd226 /src | |
parent | 19a09c7ea4a25b55fe5b0dcff33a4d40fc320b3b (diff) |
Do not do any find/replace when there is no find text.
Diffstat (limited to 'src')
-rw-r--r-- | src/textadept.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c index d2836397..ee2f4da6 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -973,6 +973,7 @@ static void find_add_to_history(const char *text, GtkListStore *store) { static void button_clicked(GtkWidget *button, gpointer) { const char *find_text = gtk_entry_get_text(GTK_ENTRY(find_entry)); const char *repl_text = gtk_entry_get_text(GTK_ENTRY(replace_entry)); + if (strlen(find_text) == 0) return; if (button == fnext_button || button == fprev_button) { find_add_to_history(find_text, find_store); l_find(find_text, button == fnext_button); |