]> rtime.felk.cvut.cz Git - sojka/company-mode.git/commitdiff
Invalidate cache when filtering.
authorNikolaj Schumacher <git@nschum.de>
Thu, 2 Apr 2009 20:20:43 +0000 (22:20 +0200)
committerNikolaj Schumacher <git@nschum.de>
Sun, 5 Apr 2009 10:43:45 +0000 (12:43 +0200)
company.el

index 99570b94b672dc1d2583554c621102b4cdf3273e..5e7a667e8c5007c0c68d9f6b099e6b8b02ae2b23 100644 (file)
@@ -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)