diff options
-rw-r--r-- | src/util/sugar.js | 2 |
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]); |