branch: elpa/dslide
commit 586082e591ed2cd23dde7d041a1b6498740cb851
Author: Psionik K <73710933+psioni...@users.noreply.github.com>
Commit: Psionik K <73710933+psioni...@users.noreply.github.com>

    set overlay initial height
    
    the animation was relying on the first frame of animation to first set the
    height.  this ensures the overlay has the initial line height even if the 
timer
    doesn't run before redisplay for some reason
    
    Chasing flicker, also why I set a priority.. There were other sources of
    flicker, and this can't all be confirmed useful yet.
    
    Signed-off-by: Psionik K <73710933+psioni...@users.noreply.github.com>
---
 dslide.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dslide.el b/dslide.el
index e2051ad165..403493cf55 100644
--- a/dslide.el
+++ b/dslide.el
@@ -2277,6 +2277,8 @@ and the value of `point-max' should contain a newline 
somewhere."
                (text-properties-at (car newline-region))
                'line-height)
               1.0)))
+    (overlay-put overlay 'line-height dslide-slide-in-blank-lines)
+    (overlay-put overlay 'priority 10)
     (push timer dslide--animation-timers)
     (push overlay dslide--animation-overlays)
     (timer-set-time timer (current-time)

Reply via email to