tecosaur / org-latex-preview-todos

A tracker for the Org LaTeX Preview effort on https://git.tecosaur.net/tec/org-mode
4 stars 0 forks source link

Text deletion between preview generation start and finish #3

Closed karthink closed 6 months ago

karthink commented 6 months ago

If the fragment is deleted between when the preview process is fired and when the overlay is updated with the preview image, we get a flurry of errors. We should just discard the image if the corresponding overlay has disappeared.

This is rare in general usage but happens often with live previews.

tecosaur commented 6 months ago

Looks like this is fixed just with this change to org-latex-preview--place-images: https://git.tecosaur.net/tec/org-mode/commit/abc4454f8d50