Skip to content

Commit

Permalink
Merge pull request #11 from syohex/workaround-newer-slime
Browse files Browse the repository at this point in the history
Workaround for newer slime
  • Loading branch information
purcell committed Jul 30, 2015
2 parents 89abc3a + 3c4e308 commit df6c4e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ac-slime.el
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
(defun ac-source-slime-simple-candidates ()
"Return a possibly-empty list of completions for the symbol at point."
(when (slime-connected-p)
(car (slime-simple-completions (substring-no-properties ac-prefix)))))
(let ((completions (slime-simple-completions (substring-no-properties ac-prefix))))
(if (listp (car completions))
(car completions)
completions))))

(defun ac-source-slime-case-correcting-completions (name collection)
(mapcar #'(lambda (completion)
Expand Down

0 comments on commit df6c4e8

Please # to comment.