feature/snippets: fix backspace in snippet fields not deleting pairs

This commit is contained in:
Henrik Lissner 2018-03-05 13:42:40 -05:00
parent 74d8ea2b0f
commit 75cb7a3f0b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -28,7 +28,7 @@
(overlay-buffer yas--active-field-overlay)
(overlay-get yas--active-field-overlay 'yas--field)))))
(cond ((eq (point) (marker-position (yas--field-start field))) nil)
(t (delete-char -1)))))
(t (call-interactively #'delete-backward-char)))))
;;;###autoload
(defun +snippets/delete-forward-char-or-field (&optional field)