~hristoast/company-openmw-lua

08288b2b83ac4dff3173904af6497fcde3138c0b — Hristos N. Triantafillou 3 days ago 6b8b591 master
Style
1 files changed, 3 insertions(+), 2 deletions(-)

M company-openmw-lua.el
M company-openmw-lua.el => company-openmw-lua.el +3 -2
@@ 46,14 46,15 @@
  "Given PREFIX, return all valid completion candidates."
  (let ((res)
        (line (company-grab-line "^.*")))

    (if (string-match-p (regexp-quote ":") line)
        (progn
          ;; Match :
          (dolist (item (company-openmw-lua--methods-for-pkg
                         (car (last (butlast (split-string line ":"))))))
            (when (string-prefix-p prefix (car item))
              (push (company-openmw-lua--make-candidate item) res)))
          )
              (push (company-openmw-lua--make-candidate item) res))))

      (if (string-match-p (regexp-quote "\.") line)
          (progn
          ;; Match .