tecosaur / org-latex-preview-todos

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

Face selection bug #4

Open karthink opened 9 months ago

karthink commented 9 months ago

LaTeX previews pick up the face of the following element, causing bugs like this:

2023-08-17_14-20-35_screenshot

See also this patch from Roshan Shariff that aims to make preview face selection more robust (will make separate issue if necessary).

tecosaur commented 9 months ago

I wonder if just removing the 1+ from (1+ end) could improve the situation? I should probably add some unit tests for this too...

tecosaur commented 9 months ago

Ok, the (1+ end) -> end change seems to be good. This may not fix the issue, but it's better at least now.

tecosaur commented 9 months ago

I've just pushed another commit that should improve the situation. It would be good to know of any edge cases that are still popping up.