[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/capf-autosuggest 6432d5f 09/63: Avoid error if all-comp
From: |
ELPA Syncer |
Subject: |
[elpa] externals/capf-autosuggest 6432d5f 09/63: Avoid error if all-completions returns invalid strings |
Date: |
Wed, 27 Oct 2021 14:57:54 -0400 (EDT) |
branch: externals/capf-autosuggest
commit 6432d5f23b4bc14d8dcb8b27de3b56d080d7822a
Author: jakanakaevangeli <jakanakaevangeli@chiru.no>
Commit: jakanakaevangeli <jakanakaevangeli@chiru.no>
Avoid error if all-completions returns invalid strings
---
capf-autosuggest.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/capf-autosuggest.el b/capf-autosuggest.el
index c757fe3..086358a 100644
--- a/capf-autosuggest.el
+++ b/capf-autosuggest.el
@@ -121,6 +121,9 @@ point forward."
;; as we only use the string without the prefix for the
;; overlay.
(all-completions string table pred)))
+ ;; `all-completions' may return strings that don't strictly
+ ;; match on our prefix. Ignore them.
+ ((string-prefix-p (substring string base) (car completions)))
(str (substring (car completions) (- end beg base)))
((/= 0 (length str))))
(setq capf-autosuggest--region (cons beg end)
- [elpa] externals/capf-autosuggest 3e36894 61/63: Fix copyright notice, (continued)
- [elpa] externals/capf-autosuggest 3e36894 61/63: Fix copyright notice, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 9fb8c7e 10/63: Fix cursor display if suggested string begins with newline, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest a5f0de5 19/63: Rearrange functions, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 8f0c505 11/63: Fix package header, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 74ed3c9 15/63: Doc fixes, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 65a33a7 05/63: Fix short description, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 7e623f3 04/63: Un-implement must-land-inside, always treat it as t, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 489974d 06/63: Require subr-x for compilation only, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 0ba985a 14/63: Minor simplification, use pcase-let, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 7085c0a 02/63: Improve, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 6432d5f 09/63: Avoid error if all-completions returns invalid strings,
ELPA Syncer <=
- [elpa] externals/capf-autosuggest f9854fb 03/63: Define partial-accept commands individually, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest d374a0b 21/63: Small rearrangement, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 56796e2 23/63: Minor loop optimization, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 82c6851 25/63: Merge into one file, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest bdc26ec 31/63: Typo, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 07cb937 32/63: Added dwim commands/menu-items, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest d5e1ce2 30/63: Rearrange, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest cf91a30 37/63: Added experimental support for minibuffer history, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest d72b37a 35/63: Added readme, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest f137fcb 39/63: Fix previous-matching-input if point isn't touching overlay, ELPA Syncer, 2021/10/27