Skip to content

Commit 4a9977e

Browse files
committed
Fix stream.eatWhile function to only return true when something was consumed
1 parent eb90c13 commit 4a9977e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ var CodeMirror = (function() {
16831683
if (ok) {++this.pos; return ch;}
16841684
},
16851685
eatWhile: function(match) {
1686-
var start = this.start;
1686+
var start = this.pos;
16871687
while (this.eat(match)){}
16881688
return this.pos > start;
16891689
},

0 commit comments

Comments
 (0)