branch: externals/ebdb
commit ae377c127ca84f1cfa98f9892c8a2809d73d7090
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>

    Use ebdb-field-search in notes-type record searches
    
    * ebdb.el (ebdb-record-search): Everything should go through
      ebdb-field-search.
    
    Relevant to #23
---
 ebdb.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebdb.el b/ebdb.el
index e293e29..18994c7 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -4668,7 +4668,7 @@ values, by default the search is not handed to the name 
field itself."
                                  (_type (subclass ebdb-field-notes))
                                  (regexp string))
   (if-let (notes (slot-value record 'notes))
-      (string-match-p regexp (ebdb-string notes))))
+      (ebdb-field-search notes regexp)))
 
 (cl-defmethod ebdb-record-search ((record ebdb-record-entity)
                                  (_type (subclass ebdb-field-phone))

Reply via email to