mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
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:
parent
f4ecf1b4aa
commit
8c9d440f0c
1 changed files with 5 additions and 1 deletions
|
@ -428,7 +428,9 @@
|
||||||
(pos (point))
|
(pos (point))
|
||||||
(window-start (if (get-buffer-window)
|
(window-start (if (get-buffer-window)
|
||||||
(window-start (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)
|
(setf format-table (car format-cons)
|
||||||
column-sizes (cdr format-cons)
|
column-sizes (cdr format-cons)
|
||||||
header-line-format (taxy-magit-section-format-header
|
header-line-format (taxy-magit-section-format-header
|
||||||
|
@ -440,6 +442,8 @@
|
||||||
;; :blank-between-depth bufler-taxy-blank-between-depth
|
;; :blank-between-depth bufler-taxy-blank-between-depth
|
||||||
:initial-depth 0))
|
:initial-depth 0))
|
||||||
(goto-char pos)
|
(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 buffer-name (if current-prefix-arg
|
||||||
'((display-buffer-same-window))
|
'((display-buffer-same-window))
|
||||||
display-buffer-action))
|
display-buffer-action))
|
||||||
|
|
Loading…
Add table
Reference in a new issue