« get me outta code hell

sugar: matchMultiline: begrudgingly one-index everything - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-06 10:42:46 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-06 12:50:32 -0400
commitb68655c0c217b372fd68a6d636ef3178b9edb427 (patch)
tree4a7f6f4ced460643339e53a42b384b68f02c2c2a /src
parent78f37e7420efe6be6ea20c609363cee9a7b2af9f (diff)
sugar: matchMultiline: begrudgingly one-index everything
Diffstat (limited to 'src')
-rw-r--r--src/util/sugar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/sugar.js b/src/util/sugar.js
index d4558653..b0fc1408 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]);