Commits

Anonymous committed ff9361e

Make sure gutter does not confuse line wrapping measurements

Comments (0)

Files changed (1)

lib/codemirror.js

 
       if (!updates.length) return;
       var th = textHeight();
-      lineDiv.style.display = "none";
+      lineDiv.style.display = gutter.style.display = "none";
       // If more than 30% of the screen needs update, just do a full
       // redraw (which is quicker than patching)
       if (changedLines > (visible.to - visible.from) * .3)
           lineSpace.style.width = code.style.width = "";
         }
       }
+      gutter.style.display = "";
       if (different || gutterDirty) updateGutter();
-
       updateCursor();
     }