branch: externals/pyim commit a57e7a696c0556850304b82d334da8dd86c8242d Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
* pyim.el (pyim-convert-string-at-point): Deactivate mark after create words. --- pyim.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyim.el b/pyim.el index 8b4104c..c43cb2f 100644 --- a/pyim.el +++ b/pyim.el @@ -787,7 +787,8 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同, (cond ;; 如果用户已经选择词条,就将此词条添加到个人词库。 ((region-active-p) - (pyim-create-word-from-selection)) + (pyim-create-word-from-selection) + (deactivate-mark)) ;; 删除用户自定义词条。比如:在一个中文字符串后输入 2-,运行此命令可以将 ;; 光标前两个中文字符组成的字符串,从个人词库删除。 ((and (eq (char-before) ?-)