[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master d8b6976 5/8: Merge pull request #610 from juergenhoetzel/f
From: |
Dmitry Gutov |
Subject: |
[elpa] master d8b6976 5/8: Merge pull request #610 from juergenhoetzel/fix-invalid-use-of-string-match |
Date: |
Mon, 14 Nov 2016 00:36:57 +0000 (UTC) |
branch: master
commit d8b69764e1a4a4e3c7ad846ed906589cb263e729
Merge: 99dbae9 1af6121
Author: Dmitry Gutov <address@hidden>
Commit: GitHub <address@hidden>
Merge pull request #610 from juergenhoetzel/fix-invalid-use-of-string-match
Fix invalid use of string match
---
company.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/company.el b/company.el
index d9b3fac..38bf7b8 100644
--- a/company.el
+++ b/company.el
@@ -1448,7 +1448,7 @@ prefix match (same case) will be prioritized."
(eq company-require-match t))))))
(defun company-auto-complete-p (input)
- "Return non-nil, if input starts with punctuation or parentheses."
+ "Return non-nil, if INPUT starts with punctuation or parentheses."
(and (if (functionp company-auto-complete)
(funcall company-auto-complete)
company-auto-complete)
@@ -1457,7 +1457,8 @@ prefix match (same case) will be prioritized."
(if (consp company-auto-complete-chars)
(memq (char-syntax (string-to-char input))
company-auto-complete-chars)
- (string-match (substring input 0 1) company-auto-complete-chars)))))
+ (string-match (regexp-quote (substring input 0 1))
+ company-auto-complete-chars)))))
(defun company--incremental-p ()
(and (> (point) company-point)
- [elpa] master updated (85bd83e -> bcd3d33), Dmitry Gutov, 2016/11/13
- [elpa] master 1af6121 4/8: company-auto-complete-p: Don't use string as regex, Dmitry Gutov, 2016/11/13
- [elpa] master c637fe0 1/8: tests: use /bin instead of /lost+found, Dmitry Gutov, 2016/11/13
- [elpa] master a5d658c 3/8: Use capital letters argument name in docstring, Dmitry Gutov, 2016/11/13
- [elpa] master dd4c9be 6/8: Improve a docstring, Dmitry Gutov, 2016/11/13
- [elpa] master c9912e9 7/8: Release 0.9.2, Dmitry Gutov, 2016/11/13
- [elpa] master 99dbae9 2/8: Merge pull request #609 from dunn/lost, Dmitry Gutov, 2016/11/13
- [elpa] master d8b6976 5/8: Merge pull request #610 from juergenhoetzel/fix-invalid-use-of-string-match,
Dmitry Gutov <=
- [elpa] master bcd3d33 8/8: Merge commit 'c9912e9ba7ef441677c1a9de7e14f78cb2da5e0e' from company, Dmitry Gutov, 2016/11/13