fix(emacs/lean-company): take out '@' from prefix for findp

fix #207
This commit is contained in:
Soonho Kong 2014-09-26 08:53:06 +02:00
parent d02ab15c88
commit 4b60499f7d

View file

@ -9,6 +9,7 @@
(require 'dash)
(require 'dash-functional)
(require 'f)
(require 's)
(require 'lean-tags)
(require 'lean-server)
@ -148,6 +149,8 @@ triggers a completion immediately."
(or
(>= (length prefix) 1)
(string-match "[_.]" prefix)))
(when (s-starts-with? "@" prefix)
(setq prefix (substring prefix 1)))
prefix)))
(defun company-lean--findp-make-candidate (arg prefix)