File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ utils.get_all_mathzones = function(opts)
9999 cache .changedtick = vim .api .nvim_buf_get_changedtick (buf )
100100 else
101101 parse_span = {
102- top = top < cache .top and top or (top >= cache .bottom and top or cache .bottom ),
103- bottom = bottom > cache .bottom and bottom or (bottom >= cache .top and cache .top or bottom ),
102+ top = top <= cache .top and top or (top >= cache .bottom and top or cache .bottom ),
103+ bottom = bottom >= cache .bottom and bottom or (bottom >= cache .top and cache .top or bottom ),
104104 }
105105 end
106106 cache .top = math.min (cache .top , parse_span .top )
Original file line number Diff line number Diff line change 5454 cache.changedtick = vim.api.nvim_buf_get_changedtick(buf)
5555 else
5656 parse_span = {
57- top = top < cache.top and top or (top >= cache.bottom and top or cache.bottom),
58- bottom = bottom > cache.bottom and bottom or (bottom >= cache.top and cache.top or bottom),
57+ top = top <= cache.top and top or (top >= cache.bottom and top or cache.bottom),
58+ bottom = bottom >= cache.bottom and bottom or (bottom >= cache.top and cache.top or bottom),
5959 }
6060 end
6161 cache.top = math.min (cache.top, parse_span.top)
You can’t perform that action at this time.
0 commit comments