Skip to content

Commit c7b1f27

Browse files
committed
Safe check
1 parent 8c053a6 commit c7b1f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eca-rewrite.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ accepts, shows menu, or diffs according to `eca-rewrite-finished-action',
383383
(buffer (eca-rewrite--get-buffer id)))
384384
(when (buffer-live-p buffer)
385385
(with-current-buffer buffer
386-
(let ((ov (eca-rewrite--overlay-from-id id)))
386+
(when-let ((ov (eca-rewrite--overlay-from-id id)))
387387
(pcase (plist-get content :type)
388388
("reasoning" (eca-rewrite--set-reasoning ov))
389389
("text" (eca-rewrite--add-text ov (plist-get content :text)))

0 commit comments

Comments
 (0)