branch: externals/ebdb
commit c98512ebb6984701bbf090f1eabedb120c51e7bd
Author: Eric Abrahamsen <e...@ericabrahamsen.net>
Commit: Eric Abrahamsen <e...@ericabrahamsen.net>

    Fix to previous divide name change, release 0.8.14
    
    Fixes #102
    
    We need to move to proper parsing.
    
    * ebdb.el (ebdb-divide-name): There isn't always a given name!
---
 ebdb.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ebdb.el b/ebdb.el
index e8012c8ca6..45b58131f6 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2,7 +2,7 @@
 
 ;; Copyright (C) 2016-2021  Free Software Foundation, Inc.
 
-;; Version: 0.8.13
+;; Version: 0.8.14
 ;; Package-Requires: ((emacs "25.1") (seq "2.15"))
 
 ;; Maintainer: Eric Abrahamsen <e...@ericabrahamsen.net>
@@ -5463,7 +5463,7 @@ usage) to represent the surname."
              (setq given (and (not (zerop (match-beginning 0)))
                               (substring string 0 (match-beginning 0)))
                    string (match-string 1 string)))))
-    (setq given (split-string given nil t))
+    (setq given (when given (split-string given nil t)))
     (cond ((string-match (regexp-opt ebdb-lastname-prefixes) string)
           (setq prefix (substring string 0 (match-end 0))
                 string (substring string (match-end 0))))

Reply via email to