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

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

[elpa] externals/pyim a35184c59a 2/2: Fix previous test error.


From: ELPA Syncer
Subject: [elpa] externals/pyim a35184c59a 2/2: Fix previous test error.
Date: Sat, 14 Jan 2023 20:58:03 -0500 (EST)

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

    Fix previous test error.
---
 pyim-cstring.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyim-cstring.el b/pyim-cstring.el
index 3eb36fd954..8120629052 100644
--- a/pyim-cstring.el
+++ b/pyim-cstring.el
@@ -154,14 +154,14 @@ BUG: 当 STRING 中包含其它标点符号,并且设置 SEPERATER 时,结
     (dotimes (i n)
       (let ((pinyins (nth i pinyins-list))
             ;; 当前位置对应的汉字和位置前后汉字组成的两字词语。
-            (words (list (ignore-errors
+            (words (list (when (>= (- i 2) 0)
                            (concat (nth (- i 2) string-parts)
                                    (nth (- i 1) string-parts)
                                    (nth i string-parts)))
-                         (ignore-errors
+                         (when (>= (- i 1) 0)
                            (concat (nth (- i 1) string-parts)
                                    (nth i string-parts)))
-                         (ignore-errors
+                         (when (< (+ i 1) n)
                            (concat (nth i string-parts)
                                    (nth (+ i 1) string-parts)))))
             ;; 当前位置汉字



reply via email to

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