Skip to content

Commit

Permalink
buffer(buffer-source): Use proper destructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
aartaka committed May 31, 2023
1 parent c71544c commit 791b730
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/buffer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1313,9 +1313,8 @@ proceeding."
"Set current BUFFER for the active window."
(set-current-buffer buffer :focus nil)))
(prompter:destructor (let ((buffer (current-buffer)))
(lambda (prompter source)
(declare (ignore source))
(unless (or (prompter:returned-p prompter)
(lambda (source)
(unless (or (prompter:returned-p (prompter:prompter source))
(eq buffer (current-buffer)))
(set-current-buffer buffer))))))
(:export-class-name-p t)
Expand Down

0 comments on commit 791b730

Please sign in to comment.