0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

org-src: Fix org-edit-src-exit' with split-window-below'

* lisp/org-src.el: (org-src-switch-to-buffer): Delete window when
exiting source buffer instead of splitting it again.
This commit is contained in:
Daniel Kraus 2019-01-22 17:03:04 +00:00 committed by Nicolas Goaziou
parent 3fc7b0639d
commit 465255f82f

View file

@ -789,7 +789,9 @@ Raise an error when current buffer is not a source editing buffer."
(`other-window
(switch-to-buffer-other-window buffer))
(`split-window-below
(select-window (split-window-vertically))
(if (eq context 'exit)
(delete-window)
(select-window (split-window-vertically)))
(pop-to-buffer-same-window buffer))
(`other-frame
(pcase context