[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim f0485dbc95: * pyim-cstring.el (pyim-cstring-words-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim f0485dbc95: * pyim-cstring.el (pyim-cstring-words-at-point): Add comment. |
Date: |
Thu, 26 May 2022 22:57:46 -0400 (EDT) |
branch: externals/pyim
commit f0485dbc95d0c0c0d5e95fcf636ae4c9ea9892d7
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-cstring.el (pyim-cstring-words-at-point): Add comment.
---
pyim-cstring.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pyim-cstring.el b/pyim-cstring.el
index 0ed4a6813d..2c1de8af70 100644
--- a/pyim-cstring.el
+++ b/pyim-cstring.el
@@ -413,7 +413,9 @@ CRITERIA 字符串一般是通过 imobjs 构建的,它保留了用户原始的
(setq str (substring str 0 (min 9 str-length)))))
(cond
- ((or (bobp) (eq (point) (line-beginning-position))) nil)
+ (;; FIXME: 在光标在 buffer 开头或者行首时,直接返回 nil.
+ ;; 也许这块应该更好的处理。
+ (or (bobp) (eq (point) (line-beginning-position))) nil)
((and str (not (pyim-string-match-p "\\CC" str)))
(setq words-alist
(pyim-cstring-split-to-list str))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/pyim f0485dbc95: * pyim-cstring.el (pyim-cstring-words-at-point): Add comment.,
ELPA Syncer <=