Skip to content
Browse files

fixed an annoying bug in XML completion when using yasnippet.

  • Loading branch information...
1 parent 55c335b commit 5bdb9882a69d9cbfbfe132e6d8499cedea9d5a2f @fred-o fred-o committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 eclim-completion.el
View
2 eclim-completion.el
@@ -192,7 +192,7 @@ buffer."
(when (string-match "\\(.*\\)=\"\\(.*\\)\"" completion)
(delete-region eclim--completion-start end)
(if (and eclim-use-yasnippet (featurep 'yasnippet))
- (yas/expand-snippet (format "%s=\"${%s}\" ${}" (match-string 1 completion) (match-string 2 completion)))
+ (yas/expand-snippet (format "%s=\"${1:%s}\" $0" (match-string 1 completion) (match-string 2 completion)))
(insert completion))))))
(defun eclim--completion-action-default ()

0 comments on commit 5bdb988

Please sign in to comment.
Something went wrong with that request. Please try again.