branch: externals/pyim commit 5d81b5213994cdee89cf2c64d0aac84afcf2d8de Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
* pyim-page.el (pyim-page-get-selected-word-position): Fixed. --- pyim-page.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyim-page.el b/pyim-page.el index 6315913e1a..e3ef885ecd 100644 --- a/pyim-page.el +++ b/pyim-page.el @@ -229,7 +229,7 @@ page 的概念,比如,上面的 “nihao” 的 *待选词列表* 就可以 "获取当前选择的词条在 candidates 中的位置。" (- (min (pyim-process-get-candidate-position) (pyim-process-candidates-length)) - (pyim-page-start))) + (1- (pyim-page-start)))) (defun pyim-page-get-valid-tooltip () "获取一个可用的 tooltip."