Update code based on PR feedback

#692
This commit is contained in:
Charlie Humphreys committed 2021-11-11 17:08:05 -06:00
1 parent 52d7e6892b
commit 2d30ac21a7
4 files changed
+12 -10

No files matched your search

+2 -6
View File
@@ -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);
}