Skip to content

Commit fee096f

Browse files
authored
Merge pull request #6184 from tommy9/Issue6181
Fix selection end column if pruning an empty last column
2 parents 9323f70 + ce21fbf commit fee096f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rubberduck.VBEditor.VB6/SafeComWrappers/VB/CodePane.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private Selection GetSelection()
4646
endLine -= 1;
4747
using (var codeModule = CodeModule)
4848
{
49-
endColumn = codeModule.GetLines(endLine, 1).Length;
49+
endColumn = codeModule.GetLines(endLine, 1).Length + 1;
5050
}
5151
}
5252

Rubberduck.VBEditor.VBA/SafeComWrappers/VB/CodePane.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private Selection GetSelection()
4646
endLine -= 1;
4747
using (var codeModule = CodeModule)
4848
{
49-
endColumn = codeModule.GetLines(endLine, 1).Length;
49+
endColumn = codeModule.GetLines(endLine, 1).Length + 1;
5050
}
5151
}
5252

0 commit comments

Comments
 (0)