Skip to content

Commit

Permalink
Fix ctrl a+c ctd
Browse files Browse the repository at this point in the history
  • Loading branch information
bcssov committed Mar 13, 2024
1 parent d1f5601 commit 86cd86c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/IronyModManager/Controls/TextEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Created : 04-15-2020
//
// Last Modified By : Mario
// Last Modified On : 03-07-2024
// Last Modified On : 03-14-2024
// ***********************************************************************
// <copyright file="TextEditor.cs" company="Mario">
// Mario
Expand Down Expand Up @@ -113,6 +113,11 @@ public int GetBottomVisibleLine()
/// <returns>An int.</returns>
public int GetLastColumnByLine(int line)
{
if (line >= Document.Lines.Count)
{
line = Document.Lines.Count;
}

var docLine = Document.GetLineByNumber(line);
if (docLine != null && docLine.Length != 0)
{
Expand Down

0 comments on commit 86cd86c

Please sign in to comment.