Skip to content

Commit

Permalink
magit-define-section-jumper: Improve indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Oct 14, 2023
1 parent 139f603 commit 22c9983
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lisp/magit-section.el
Original file line number Diff line number Diff line change
Expand Up @@ -850,18 +850,18 @@ If there is no previous sibling section, then move to the parent."
Together TYPE and VALUE identify the section.
HEADING is the displayed heading of the section."
(declare (indent defun))
`(defun ,name (&optional expand) ,(format "\
Jump to the section \"%s\".
`(defun ,name (&optional expand)
,(format "Jump to the section \"%s\".
With a prefix argument also expand it." heading)
(interactive "P")
(if-let ((section (magit-get-section
(cons (cons ',type ,value)
(magit-section-ident magit-root-section)))))
(progn (goto-char (oref section start))
(when expand
(with-local-quit (magit-section-show section))
(recenter 0)))
(message ,(format "Section \"%s\" wasn't found" heading)))))
(interactive "P")
(if-let ((section (magit-get-section
(cons (cons ',type ,value)
(magit-section-ident magit-root-section)))))
(progn (goto-char (oref section start))
(when expand
(with-local-quit (magit-section-show section))
(recenter 0)))
(message ,(format "Section \"%s\" wasn't found" heading)))))

;;;; Visibility

Expand Down

0 comments on commit 22c9983

Please sign in to comment.