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 1bb69a5 commit 0f91e5cCopy full SHA for 0f91e5c
lib_src/misc/cells.ts
@@ -19,7 +19,7 @@ export function getRange(editor: TextEditor): [Point, Point] {
19
cursor.column = Infinity // cursor on delimiter line means eval cell below
20
21
let foundDelim = false
22
- for (let i = cursor.row + 1; i <= editor.getLastBufferRow(); i++) {
+ for (let i = cursor.row + 1, l = editor.getLastBufferRow(); i <= l; i++) {
23
const { line, scope } = getLine(editor, i)
24
foundDelim = regex.test(line) && scope.join(".").indexOf("comment.line") > -1
25
end.row = i
0 commit comments