branch: externals/company
commit 7414aac908cdc1e29826de36608cf1d01004b525
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    Fix compat with Emacs < 29
---
 company-dabbrev-code.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/company-dabbrev-code.el b/company-dabbrev-code.el
index a496c8ed37..7c7d6e15d4 100644
--- a/company-dabbrev-code.el
+++ b/company-dabbrev-code.el
@@ -89,7 +89,7 @@ also `company-dabbrev-code-time-limit'."
                              (substring prefix 0 2)
                            prefix)))
              (mapconcat #'regexp-quote
-                        (string-split prefix "" t)
+                        (mapcar #'string prefix)
                         "\\(\\sw\\|\\s_\\)*"))))))
     (concat "\\_<" prefix-re "\\(\\sw\\|\\s_\\)*\\_>")))
 

Reply via email to