diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-12-11 19:15:26 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-12-11 19:15:26 +0100 |
| commit | fbf880b3ba35d2ef6fe0db45e089d03abf4390f1 (patch) | |
| tree | 47243638e01a50bb9e8c76bddd6872b7be669af4 | |
| parent | 4b459d2c130a0c233a0c1d9edae5704269870273 (diff) | |
Fix region mode predicate
| -rw-r--r-- | corfu.el | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1134,7 +1134,9 @@ See `completion-in-region' for the arguments BEG, END, TABLE, PRED." (run-hook-wrapped 'completion-at-point-functions #'corfu--capf-wrapper)) (`(,fun ,beg ,end ,table . ,plist) (let ((completion-in-region-mode-predicate - (lambda () (eq beg (car-safe (funcall fun))))) + (lambda () + (when-let (newbeg (car-safe (funcall fun))) + (= newstart beg)))) (completion-extra-properties plist)) (setq completion-in-region--data (list (if (markerp beg) beg (copy-marker beg)) |
