Skip to content

Commit

Permalink
make sure line numbers fill the whole vertical space when textwrappin…
Browse files Browse the repository at this point in the history
…g is enabled
  • Loading branch information
marijnh committed Jul 22, 2010
1 parent 213d388 commit fca7c5d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/codemirror.js
Expand Up @@ -392,20 +392,21 @@ var CodeMirror = (function(){
return;
}
}
while (lineNum) setNum(next++);
commitChanges();
doScroll();
}
function start() {
function start(firstTime) {
doScroll();
ensureEnoughLineNumbers(false);
ensureEnoughLineNumbers(firstTime);
node = body.firstChild;
lineNum = scroller.firstChild;
pos = 0;
next = 1;
work();
}

start();
start(true);
var pending = null;
function update() {
if (pending) clearTimeout(pending);
Expand Down

0 comments on commit fca7c5d

Please sign in to comment.