emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pyim 03253ba 2/5: * pyim-cstring.el (pyim-cstring-spli


From: ELPA Syncer
Subject: [elpa] externals/pyim 03253ba 2/5: * pyim-cstring.el (pyim-cstring-split-to-string): 稍微优化。
Date: Wed, 8 Dec 2021 00:57:31 -0500 (EST)

branch: externals/pyim
commit 03253ba9d54584a22be3c907469774dbcd3ade60
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * pyim-cstring.el (pyim-cstring-split-to-string): 稍微优化。
---
 pyim-cstring.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyim-cstring.el b/pyim-cstring.el
index 6582ac1..39847d1 100644
--- a/pyim-cstring.el
+++ b/pyim-cstring.el
@@ -150,8 +150,8 @@ CHINESE-STRING 分词,得到一个词条 alist,这个 alist 的元素都是
                  (if (not (pyim-string-match-p "\\CC" str))
                      (pyim-cstring-split-to-string-1
                       str prefer-short-word separator max-word-length)
-                   (concat " " str " "))))
-             (pyim-cstring-partition string) ""))
+                   str)))
+             (pyim-cstring-partition string) (or separator " ")))
 
 (defun pyim-cstring-split-to-string-1 (chinese-string &optional 
prefer-short-word
                                                       separator 
max-word-length)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]