Skip to content

Commit

Permalink
lispy.el (lispy--action-jump): Add recenter
Browse files Browse the repository at this point in the history
  • Loading branch information
abo-abo committed Apr 22, 2016
1 parent e67b931 commit 16f885f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lispy.el
Expand Up @@ -2750,8 +2750,7 @@ Also works from inside the list."
(lispy-different))
(cond ((region-active-p)
(if (= arg 1)
(let ((pt (point))
(bnd1 (lispy--bounds-dwim))
(let ((bnd1 (lispy--bounds-dwim))
(bnd0 (save-excursion
(deactivate-mark)
(if (ignore-errors (up-list) t)
Expand Down Expand Up @@ -2812,8 +2811,7 @@ Also works from inside the list."
(lispy-different))
(cond ((region-active-p)
(if (= arg 1)
(let ((pt (point))
(bnd1 (lispy--bounds-dwim))
(let ((bnd1 (lispy--bounds-dwim))
(bnd0 (save-excursion
(deactivate-mark)
(if (ignore-errors (up-list) t)
Expand Down Expand Up @@ -6761,6 +6759,8 @@ ACTION is called for the selected candidate."
(when (and (eq major-mode 'clojure-mode)
(not (looking-at "(")))
(forward-char -1))
(require 'find-func)
(recenter find-function-recenter-line)
(lispy--ensure-visible))
(error "Unexpected tag: %S" tag)))

Expand Down

0 comments on commit 16f885f

Please sign in to comment.