Skip to content

Commit

Permalink
with-editor-sleeping-editor-filter: Store window configuration
Browse files Browse the repository at this point in the history
Closes #107.
  • Loading branch information
dankessler authored and tarsius committed Apr 12, 2022
1 parent 7381fa1 commit 3d1af15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lisp/with-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,8 @@ may not insert the text into the PROCESS's buffer. Then it calls
(with-current-buffer (find-file-noselect file)
(with-editor-mode 1)
(setq with-editor--pid pid)
(setq with-editor-previous-winconf
(current-window-configuration))
(run-hooks 'with-editor-filter-visit-hook)
(funcall (or (with-editor-server-window) #'switch-to-buffer)
(current-buffer))
Expand Down

0 comments on commit 3d1af15

Please # to comment.