branch: master
commit 4a4152b3d643dca07f1e0aed5a1ad53b8fc77af5
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Add a FIXME
---
company-capf.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/company-capf.el b/company-capf.el
index ffd9ea3..26656c6 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -165,6 +165,11 @@
(if exit-function
;; Follow the example of `completion--done'.
(funcall exit-function arg
+ ;; FIXME: Should probably use an additional heuristic:
+ ;; completion-at-point doesn't know when the user picked a
+ ;; particular candidate explicitly (it only checks whether
+ ;; futher completions exist). Whereas company user can press
+ ;; RET (or use implicit completion with company-tng).
(if (eq (try-completion arg table pred) t)
'finished 'sole)))))