commit: f40b7d38a472395dac81808ab3ff57a0119c5ebc
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 16 22:16:33 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Aug 16 22:16:33 2022 +0000
URL:
https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=f40b7d38
company-ebuild.el: do not require a match
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
company-ebuild.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/company-ebuild.el b/company-ebuild.el
index 8ef299d..65c5aef 100644
--- a/company-ebuild.el
+++ b/company-ebuild.el
@@ -228,10 +228,6 @@ COMMAND is matched with `cl-case'.
ARG is the completion argument for annotation and candidates."
(interactive (list 'interactive))
(cl-case command
- (interactive
- (company-begin-backend 'company-ebuild))
- (prefix
- (and (eq major-mode 'ebuild-mode) (company-grab-symbol)))
(annotation
(company-ebuild--annotation arg))
(candidates
@@ -240,7 +236,13 @@ ARG is the completion argument for annotation and
candidates."
(string-prefix-p arg candidate t))
(append company-ebuild--constant-keywords
(company-ebuild--dynamic-keywords)
- (company-ebuild--executables arg))))))
+ (company-ebuild--executables arg))))
+ (interactive
+ (company-begin-backend 'company-ebuild))
+ (prefix
+ (and (eq major-mode 'ebuild-mode) (company-grab-symbol)))
+ (require-match
+ nil)))
;;;###autoload
(defun company-ebuild-setup ()
@@ -266,7 +268,8 @@ or `require' Company-Ebuild:
(t
(add-to-list 'company-backends 'company-ebuild)))
;; Because some completions have length 1:
- (setq-local company-minimum-prefix-length 1))
+ (setq-local company-minimum-prefix-length 1)
+ (setq-local company-require-match nil))
;;;###autoload
(add-hook 'ebuild-mode-hook 'company-ebuild-setup)