jsinglet / latex-preview-pane

Makes LaTeX editing less painful by providing a updatable preview pane
130 stars 24 forks source link

fix lpp/window-containing-preview #58

Open Simon-Lin opened 2 years ago

Simon-Lin commented 2 years ago

This is to fix a bug where the latex-preview-pane sometimes fail to find the correct window containing preview when there is more than 3 windows (across multiple frames). The cause of this bug is that the length of windows on line 67 is dynamical so the function misses the body of list. I have re-implemented the function using cl-find. Hopefully this makes the code more readable while maintaining the same functionality.