diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-12-13 12:32:41 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-12-13 12:32:41 +0100 |
| commit | 160bd53db56f279d87377a8068aab754ec4b5d0c (patch) | |
| tree | f28caa971c4d2ed67b5c4c338915ae5fb50bfdcd | |
| parent | c1870977f6a9107cef59c482446fca60991dfd4b (diff) | |
corfu--capf-wrapper: Add comment
| -rw-r--r-- | corfu.el | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1175,6 +1175,10 @@ Determines if the capf is applicable at the current position." (pt (- (point) beg)) (pred (plist-get plist :predicate)) (md (completion-metadata (substring str 0 pt) table pred))) + ;; We use `completion-try-completion' to check if there are + ;; completions. The upstream `completion--capf-wrapper' uses + ;; `try-completion' which is incorrect since it only checks for + ;; prefix completions. (completion-try-completion str table pred pt md))) (cons fun res))))) |
