Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(highlight): Skip redraw over folded lines
Fixes: folke#285 Currently on a window update such as `WinScroll` highlight_win is looping through every line from from `w0` to `w$` to update the highlights. On large files with very large folded regions these two lines can be very far apart and highlighting every single line can be costly even though they are not in view. This update adds a check to skip over any lines hidden in a fold.
- Loading branch information