We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29fbbac commit 3d3898fCopy full SHA for 3d3898f
lib/codemirror.js
@@ -3770,7 +3770,7 @@
3770
var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft;
3771
var screenw = display.scroller.clientWidth - scrollerCutOff - display.gutters.offsetWidth;
3772
var tooWide = x2 - x1 > screenw;
3773
- if (tooWide) x2 = x1 + screen;
+ if (tooWide) x2 = x1 + screenw;
3774
if (x1 < 10)
3775
result.scrollLeft = 0;
3776
else if (x1 < screenleft)
0 commit comments