emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 16/30: company-file--keys-match-p: Handle OLD being nil


From: Dmitry Gutov
Subject: [elpa] 16/30: company-file--keys-match-p: Handle OLD being nil
Date: Tue, 14 Oct 2014 22:22:50 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit a5702681cf9fe0a14be67e1d4d3b4ea3807fa9b0
Author: Dmitry Gutov <address@hidden>
Date:   Mon Sep 29 05:30:41 2014 +0400

    company-file--keys-match-p: Handle OLD being nil
---
 company-files.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/company-files.el b/company-files.el
index 0e2ab4d..baaeaca 100644
--- a/company-files.el
+++ b/company-files.el
@@ -82,8 +82,8 @@
                      (cdr company-files--completion-cache))))
 
 (defun company-file--keys-match-p (new old)
-  (and (string-prefix-p (car old) (car new))
-       (equal (cdr old) (cdr new))))
+  (and (equal (cdr old) (cdr new))
+       (string-prefix-p (car old) (car new))))
 
 ;;;###autoload
 (defun company-files (command &optional arg &rest ignored)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]