From b68655c0c217b372fd68a6d636ef3178b9edb427 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 6 Jan 2024 10:42:46 -0400 Subject: sugar: matchMultiline: begrudgingly one-index everything --- src/util/sugar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/sugar.js b/src/util/sugar.js index d455865..b0fc140 100644 --- a/src/util/sugar.js +++ b/src/util/sugar.js @@ -305,7 +305,7 @@ export function* matchMultiline(content, matchRegexp, { colors.yellow( (isMultiline ? `line: ${lineNumber + 1}, col: ${columnNumber + 1}` - : `pos: ${match.index}`)); + : `pos: ${match.index + 1}`)); } countLineBreaks(match.index, match[0]); -- cgit 1.3.0-6-gf8a5