emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master c80fbf2 49/60: Cleanup yas--on-field-overlay-modification


From: João Távora
Subject: [elpa] master c80fbf2 49/60: Cleanup yas--on-field-overlay-modification
Date: Thu, 21 Jan 2016 22:36:05 +0000

branch: master
commit c80fbf2c0b022c91e38dc7e4d456e78ab4ec3eb8
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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.
---
 yasnippet.el |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index 7c222bb..f468aab 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -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))))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]