0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Rename prevLine to activeLine for better reading clarity.

This commit is contained in:
David Bolack
2024-07-20 21:51:03 -05:00
parent 6693fb1c13
commit fde797c044

View File

@@ -5,10 +5,10 @@ module.exports = {
// BRACE FOLDING
const startMatcher = /\{[ \t]*$/;
const endMatcher = /\}[ \t]*$/;
const prevLine = cm.getLine(start.line);
const activeLine = cm.getLine(start.line);
if(prevLine.match(startMatcher)) {
if(activeLine.match(startMatcher)) {
const lastLineNo = cm.lastLine();
let end = start.line + 1;
let braceCount = 1;
@@ -31,7 +31,7 @@ module.exports = {
const importMatcher = /^@import.*?[;]/;
if(prevLine.match(importMatcher)) {
if(activeLine.match(importMatcher)) {
return {
from : CodeMirror.Pos(start.line, 0),
to : CodeMirror.Pos(start.line, cm.getLine(start.line).length)