mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-28 04:52:40 +00:00
@@ -9,12 +9,8 @@ module.exports = {
|
||||
let end = start.line, nextLine = cm.getLine(start.line + 1);
|
||||
|
||||
while (end < lastLineNo) {
|
||||
if(nextLine.match(matcher)) {
|
||||
return {
|
||||
from : CodeMirror.Pos(start.line, 0),
|
||||
to : CodeMirror.Pos(end, cm.getLine(end).length)
|
||||
};
|
||||
}
|
||||
if(nextLine.match(matcher))
|
||||
break;
|
||||
++end;
|
||||
nextLine = cm.getLine(end + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user