]> code.delx.au - gnu-emacs-elpa/commitdiff
Cleanup yas--on-field-overlay-modification
authorNoam Postavsky <npostavs@users.sourceforge.net>
Sun, 13 Dec 2015 05:30:24 +0000 (00:30 -0500)
committerNoam Postavsky <npostavs@users.sourceforge.net>
Sun, 13 Dec 2015 05:33:25 +0000 (00:33 -0500)
* yasnippet.el (yas--on-field-overlay-modification): Remove redundant
  `after?' check; use `=' to save marker vs number type checking.

yasnippet.el

index 7c222bb07595b2ddba8e2fa95c6dc4ee2e47fac6..f468aabc8b750b9dbcd318b482e135324cdf9ea3 100644 (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))))))
 \f