Fix: (ement-taxy-room-list) Go to previous section by ident

Not sure if this will work correctly as-is; might need to use
magit-section-ident-value.
This commit is contained in:
Adam Porter 2022-04-11 06:12:46 -05:00
parent f4ecf1b4aa
commit 8c9d440f0c

View file

@ -428,7 +428,9 @@
(pos (point))
(window-start (if (get-buffer-window)
(window-start (get-buffer-window))
0)))
0))
(section-ident (when (magit-current-section)
(magit-section-ident (magit-current-section)))))
(setf format-table (car format-cons)
column-sizes (cdr format-cons)
header-line-format (taxy-magit-section-format-header
@ -440,6 +442,8 @@
;; :blank-between-depth bufler-taxy-blank-between-depth
:initial-depth 0))
(goto-char pos)
(when (and section-ident (magit-get-section section-ident))
(goto-char (oref (magit-get-section section-ident) start)))
(display-buffer buffer-name (if current-prefix-arg
'((display-buffer-same-window))
display-buffer-action))