Cleanup yas--on-field-overlay-modification

* yasnippet.el (yas--on-field-overlay-modification): Remove redundant
  `after?' check; use `=' to save marker vs number type checking.
This commit is contained in:
Noam Postavsky 2015-12-13 00:30:24 -05:00
parent 67a45a61de
commit c80fbf2c0b

View File

@ -3399,11 +3399,8 @@ progress."
(yas--field-update-display field))
(yas--update-mirrors snippet))
(field
(when (and (not after?)
(not (yas--field-modified-p field))
(eq (point) (if (markerp (yas--field-start field))
(marker-position (yas--field-start field))
(yas--field-start field))))
(when (and (not (yas--field-modified-p field))
(= (point) (yas--field-start field)))
(yas--skip-and-clear field))
(setf (yas--field-modified-p field) t))))))