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

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

[elpa] master 2bc1d7b 276/348: ivy.el (ivy--occur-insert-lines): Scroll


From: Oleh Krehel
Subject: [elpa] master 2bc1d7b 276/348: ivy.el (ivy--occur-insert-lines): Scroll to first cand
Date: Sat, 8 Apr 2017 11:04:14 -0400 (EDT)

branch: master
commit 2bc1d7bd8d0f12d5b6b821a0ffa698e6564d865a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy--occur-insert-lines): Scroll to first cand
    
    Fixes #829
---
 ivy.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index b7cee81..5589da1 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3392,7 +3392,9 @@ When `ivy-calling' isn't nil, call `ivy-occur-press'."
        highlight
        help-echo "mouse-1: call ivy-action")
      str)
-    (insert str "\n")))
+    (insert str "\n"))
+  (goto-char (point-min))
+  (forward-line 4))
 
 (defun ivy-occur ()
   "Stop completion and put the current matches into a new buffer.



reply via email to

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