Commit 033cae9
committed
filediff: Dodge divide-by-zero in some edge cases
I'm not totally clear on when this happens, but in some cases (e.g.,
during slow file loading, when line revalidation is taking a while) we
occasionally get lines with a height of zero. Since this adjustment
exists mainly for smoother scrolling, it's easiest to just avoid the
zero rather than doing anything complicated.1 parent d6b8d24 commit 033cae9
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1674 | 1674 | | |
1675 | 1675 | | |
1676 | 1676 | | |
1677 | | - | |
| 1677 | + | |
| 1678 | + | |
1678 | 1679 | | |
1679 | 1680 | | |
1680 | 1681 | | |
| |||
0 commit comments