branch: externals/pyim commit c6fd32f9b2ffba26386a6f8db9be649a5030c0b3 Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
Simplify pyim-liberime-create-word --- pyim-liberime.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyim-liberime.el b/pyim-liberime.el index 1a9a7f3bdc..cf1ced5a68 100644 --- a/pyim-liberime.el +++ b/pyim-liberime.el @@ -309,9 +309,8 @@ Please see: https://github.com/rime/librime/issues/349" (pyim-cstring-to-pinyin word nil "-" t nil t)))) (dolist (codes codes-list) (pyim-liberime--create-word codes chars)) - (mapconcat (lambda (codes) - (format "%s -> %s" (string-join codes "-") word)) - codes-list "; "))) + (liberime-clear-commit) + (liberime-clear-composition))) (advice-add 'pyim-process-create-word :after #'pyim-liberime-create-word)