Update lines with zero height on sidediv

Avoid evaluation of `0` height as false within `if` condition,
since it is possible having 0px as line-height.
This commit is contained in:
Guilherme Goncalves 2021-02-12 16:28:19 -03:00 committed by Richard Hansen
parent 9c7dcb1d0a
commit 3ff244f7a0

View file

@ -3858,7 +3858,7 @@ function Ace2Inner() {
// Apply height to existing sidediv lines
currentLine = 0;
while (sidebarLine && currentLine <= lineNumbersShown) {
if (lineHeights[currentLine]) {
if (lineHeights[currentLine] != null) {
sidebarLine.style.height = `${lineHeights[currentLine]}px`;
}
sidebarLine = sidebarLine.nextSibling;