Skip to content

Commit 87d0a29

Browse files
committed
Fix off-by-one error.
1 parent 01da755 commit 87d0a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.Parsing/ParserRuleContextExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static Selection GetSelection(this ParserRuleContext context)
2020
var startLine = context.Start.Line == 0 ? 1 : context.Start.Line;
2121
var startCol = context.Start.Column + 1;
2222
var endLine = context.Stop.Line == 0 ? 1 : context.Stop.Line;
23-
var endCol = context.Stop.Column + context.Stop.Text.Length;
23+
var endCol = context.Stop.Column + context.Stop.Text.Length + 1;
2424

2525
return new Selection(
2626
startLine,

0 commit comments

Comments
 (0)