]> code.delx.au - gnu-emacs-elpa/commitdiff
company--should-complete: Don't check if we're in minibuffer
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 6 Dec 2013 01:24:00 +0000 (03:24 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 6 Dec 2013 01:24:00 +0000 (03:24 +0200)
This check has been fairly useless since 25f2c535

#42

company.el

index b139b26d3ca20fd8348130352a0f4bb312d10bf6..bee150c509897cfe960f244c51a1ec70cc698678 100644 (file)
@@ -426,8 +426,7 @@ as if it was on this list."
 (defcustom company-selection-wrap-around nil
   "If enabled, selecting item before first or after last wraps around."
   :type '(choice (const :tag "off" nil)
-                 (const :tag "on" t))
-  :group 'company)
+                 (const :tag "on" t)))
 
 (defvar company-end-of-buffer-workaround t
   "Work around a visualization bug when completing at the end of the buffer.
@@ -759,8 +758,7 @@ can retrieve meta-data for them."
 
 (defun company--should-complete ()
   (and (not (or buffer-read-only overriding-terminal-local-map
-                overriding-local-map
-                (minibufferp)))
+                overriding-local-map))
        ;; Check if in the middle of entering a key combination.
        (or (equal (this-command-keys-vector) [])
            (not (keymapp (key-binding (this-command-keys-vector)))))