Permalink
Browse files

minor fixes

  • Loading branch information...
1 parent e43da1e commit a8b66ffef1895296de0e9b66192e9ed28c0057dc @fred-o fred-o committed Dec 4, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 company-emacs-eclim.el
View
@@ -49,7 +49,9 @@
"A `company-mode' back-end for eclim completion"
(interactive)
(case command
- ('prefix (buffer-substring-no-properties (eclim-completion-start) (point)))
+ ('prefix
+ (let ((start (eclim-completion-start)))
+ (when start (buffer-substring-no-properties start (point)))))
('candidates (eclim--completion-candidates))
('meta (eclim--completion-documentation arg))
('no-cache (equal arg ""))))

0 comments on commit a8b66ff

Please sign in to comment.