[gnome-commander/gcmd-1-3] Fixed problem #602795 (file content search)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-3] Fixed problem #602795 (file content search)
- Date: Mon, 1 Mar 2010 19:27:05 +0000 (UTC)
commit 62852f486540ba1b8e00acec81dfaad0e92706ff
Author: PrzemysÅ?aw WesoÅ?ek <pwes o2 pl>
Date: Mon Mar 1 20:22:03 2010 +0100
Fixed problem #602795 (file content search)
src/gnome-cmd-search-dialog.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index 68d2e83..acfcf57 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -232,7 +232,12 @@ inline gboolean content_matches (GnomeCmdFile *f, SearchData *data)
SearchFileData *search_file = NULL;
while ((search_file = read_search_file (data, search_file, f)) != NULL)
+ {
ret = regexec (data->content_regex, data->search_mem, 1, &match, 0);
+ // stop on first match
+ if (ret != REG_NOMATCH)
+ break;
+ }
}
return ret != REG_NOMATCH;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]