abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.2k stars 130 forks source link

yank-pop after lispy-yank scrolls randomly #602

Open jakanakaevangeli opened 3 years ago

jakanakaevangeli commented 3 years ago
diff --git a/lispy.el b/lispy.el
index 5a20904..e916438 100644
--- a/lispy.el
+++ b/lispy.el
@@ -1249,6 +1249,7 @@ (defun lispy-kill-sentence ()
 (defun lispy-yank ()
   "Like regular `yank', but quotes body when called from \"|\"."
   (interactive)
+  (setq yank-window-start (window-start))
   (setq this-command 'yank)
   (let* ((text (lispy--maybe-safe-current-kill)))
     (cond