Skip to content

Conversation

@Taiizor
Copy link
Owner

@Taiizor Taiizor commented Apr 12, 2025

No description provided.

@Taiizor Taiizor requested a review from Copilot April 12, 2025 19:36
@Taiizor Taiizor self-assigned this Apr 12, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/ReaLTaiizor/Controls/RichTextBox/MetroRichTextBox.cs:406

  • If '_richTextBox.Text' has changed in length, the saved cursor position may exceed the new text length. Consider clamping 'cursorPosition' to '_richTextBox.Text.Length' to prevent potential out-of-range errors.
            _richTextBox.SelectionStart = cursorPosition; // Restore the cursor position

@Taiizor Taiizor changed the title #175 Fix cursor jump issue in MetroRichTextBox Fix cursor jump issue in MetroRichTextBox Apr 12, 2025
@Taiizor Taiizor linked an issue Apr 12, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MetroRichTextBox cursor jumps always to pos 0

2 participants