Skip to content

Commit

Permalink
Fix selection end column if pruning an empty last column
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy9 committed Nov 25, 2023
1 parent 9323f70 commit ce21fbf
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 ce21fbf

Please sign in to comment.