Skip to content

Commit fdfc40b

Browse files
committed
Delete error overlay on modification
1 parent 480ba2f commit fdfc40b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cider-interaction.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,9 @@ If location could not be found, return nil."
10261026
(overlay-put overlay 'cider-note-p t)
10271027
(overlay-put overlay 'face face)
10281028
(overlay-put overlay 'cider-note note)
1029-
(overlay-put overlay 'help-echo note))))
1029+
(overlay-put overlay 'help-echo note)
1030+
(overlay-put overlay 'modification-hooks
1031+
(list (lambda (o &rest args) (delete-overlay o)))))))
10301032

10311033
(defun cider-jump-to-error-maybe (buffer err)
10321034
"If `cider-auto-jump-to-error' is non-nil, retrieve error location from ERR and jump to it."

0 commit comments

Comments
 (0)