Skip to content

Commit d9dcece

Browse files
committed
Fix nrepl-client-sentinel for recent changes
This function was killing whichever buffer was active before the repl was killed. Fixes #767
1 parent 0e79de2 commit d9dcece

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

nrepl-client.el

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,7 @@ Display MESSAGE and if the process is closed kill the
372372
process buffer and run the hook `nrepl-disconnected-hook'."
373373
(message "nREPL connection closed: %s" message)
374374
(if (equal (process-status process) 'closed)
375-
(progn
376-
(with-current-buffer (process-buffer process)
377-
(when (and nrepl-repl-buffer
378-
(get-buffer nrepl-repl-buffer))
379-
(kill-buffer nrepl-repl-buffer))
380-
(kill-buffer (current-buffer)))
381-
(run-hooks 'nrepl-disconnected-hook))))
375+
(run-hooks 'nrepl-disconnected-hook)))
382376

383377

384378
;;; Client: Initialization

0 commit comments

Comments
 (0)