Fix ${0:soon-to-be-deleted} with no other fields

* yasnippet.el (yas-expand-snippet): Unset `deactivate-mark'.
This commit is contained in:
Noam Postavsky 2017-04-05 00:54:35 -04:00
parent 394942130d
commit 47f37f70f4

View File

@ -3809,6 +3809,7 @@ considered when expanding the snippet."
(yas--letenv (yas--snippet-expand-env snippet)
(yas--move-to-field snippet first-field))))
(yas--message 4 "snippet expanded.")
(setq deactivate-mark nil)
t))))
(defun yas--take-care-of-redo (_beg _end snippet)