]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix incremental cache from empty string.
authorNikolaj Schumacher <git@nschum.de>
Thu, 16 Apr 2009 08:27:08 +0000 (10:27 +0200)
committerNikolaj Schumacher <git@nschum.de>
Sat, 18 Apr 2009 09:47:06 +0000 (11:47 +0200)
company.el

index 6f8f3f6d1aec027a01af63c6d2bfedf9882e1265..5d064cb55279bb4c02f8d00be4ffcd0481628436 100644 (file)
@@ -667,7 +667,7 @@ keymap during active completions (`company-active-map'):
                      (completion-ignore-case (funcall company-backend
                                                       'ignore-case))
                      prev)
-                 (dotimes (i len)
+                 (dotimes (i (1+ len))
                    (when (setq prev (cdr (assoc (substring prefix 0 (- len i))
                                                 company-candidates-cache)))
                      (return (all-completions prefix prev))))))