mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
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:
parent
67a45a61de
commit
c80fbf2c0b
@ -3399,11 +3399,8 @@ progress."
|
|||||||
(yas--field-update-display field))
|
(yas--field-update-display field))
|
||||||
(yas--update-mirrors snippet))
|
(yas--update-mirrors snippet))
|
||||||
(field
|
(field
|
||||||
(when (and (not after?)
|
(when (and (not (yas--field-modified-p field))
|
||||||
(not (yas--field-modified-p field))
|
(= (point) (yas--field-start field)))
|
||||||
(eq (point) (if (markerp (yas--field-start field))
|
|
||||||
(marker-position (yas--field-start field))
|
|
||||||
(yas--field-start field))))
|
|
||||||
(yas--skip-and-clear field))
|
(yas--skip-and-clear field))
|
||||||
(setf (yas--field-modified-p field) t))))))
|
(setf (yas--field-modified-p field) t))))))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user