branch: externals/company commit b05e9ea272312036fdc7df93fa8757f6c74a7b27 Author: Dmitry Gutov <dmi...@gutov.dev> Commit: Dmitry Gutov <dmi...@gutov.dev>
Revert "Remove :company-use-while-no-input, just default to interrupting" This reverts commit 61d992bd62ebaacf6d3e9e621951f6408006fc54. Update for #1468. --- company-capf.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/company-capf.el b/company-capf.el index 2543f3d8d2..8d796f5f01 100644 --- a/company-capf.el +++ b/company-capf.el @@ -189,10 +189,12 @@ so we can't just use the preceding variable instead.") table pred)))) (company-capf--save-current-data res meta) (when res - (let* ((candidates (company-capf--candidates-1 input table pred + (let* ((interrupt (plist-get (nthcdr 4 res) :company-use-while-no-input)) + (candidates (company-capf--candidates-1 input table pred (length input) meta - non-essential)) + (and non-essential + interrupt))) (sortfun (cdr (assq 'display-sort-function meta))) (last (last candidates)) (base-size (and (numberp (cdr last)) (cdr last))))