Skip to content

Commit

Permalink
Moved company-tempo-insert call to post-completion
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphsanchez committed Jan 28, 2016
1 parent 5565541 commit ec9f6c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions company-tempo.el
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@
"`company-mode' completion backend for tempo."
(interactive (list 'interactive))
(cl-case command
(interactive (company-begin-backend 'company-tempo
'company-tempo-insert))
(interactive (company-begin-backend 'company-tempo))
(prefix (or (car (tempo-find-match-string tempo-match-finder)) ""))
(candidates (all-completions arg (tempo-build-collection)))
(meta (company-tempo-meta arg))
(post-completion (when company-tempo-expand (tempo-expand-if-complete)))
(post-completion (when company-tempo-expand (company-tempo-insert arg)))
(sorted t)))

(provide 'company-tempo)
Expand Down

0 comments on commit ec9f6c7

Please sign in to comment.