Skip to content

Commit

Permalink
Merge pull request #6184 from tommy9/Issue6181
Browse files Browse the repository at this point in the history
Fix selection end column if pruning an empty last column
  • Loading branch information
retailcoder committed Nov 26, 2023
2 parents 9323f70 + ce21fbf commit fee096f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rubberduck.VBEditor.VB6/SafeComWrappers/VB/CodePane.cs
Expand Up @@ -46,7 +46,7 @@ private Selection GetSelection()
endLine -= 1;
using (var codeModule = CodeModule)
{
endColumn = codeModule.GetLines(endLine, 1).Length;
endColumn = codeModule.GetLines(endLine, 1).Length + 1;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Rubberduck.VBEditor.VBA/SafeComWrappers/VB/CodePane.cs
Expand Up @@ -46,7 +46,7 @@ private Selection GetSelection()
endLine -= 1;
using (var codeModule = CodeModule)
{
endColumn = codeModule.GetLines(endLine, 1).Length;
endColumn = codeModule.GetLines(endLine, 1).Length + 1;
}
}

Expand Down

0 comments on commit fee096f

Please sign in to comment.