From 40f6fe829bf0648ec03b88f33453a2413b9775f6 Mon Sep 17 00:00:00 2001 From: Nikolaj Schumacher Date: Thu, 2 Apr 2009 22:20:43 +0200 Subject: [PATCH] Invalidate cache when filtering. --- company.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/company.el b/company.el index 99570b9..5e7a667 100644 --- a/company.el +++ b/company.el @@ -711,7 +711,9 @@ keymap during active completions (`company-active-map'): candidate)) `(string-match ,company-search-string candidate)))) (company-update-candidates - (company-apply-predicate company-candidates company-candidates-predicate))) + (company-apply-predicate company-candidates company-candidates-predicate)) + ;; Invalidate cache. + (setq company-candidates-cache (cons company-prefix company-candidates))) (defun company-filter-printing-char () (interactive) -- 2.39.2