mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-06-28 13:34:09 +08:00
commit
b34efabb3a
@ -558,8 +558,9 @@ namespace CPF.Controls
|
||||
if (codeTextView.Text.Length >= caretIndex)
|
||||
{
|
||||
//Text = codeTextView.Text.Insert((int)caretIndex, e.Text);
|
||||
codeTextView.InsertText(caretIndex, e.Text);
|
||||
var caretIndex_old = caretIndex;
|
||||
caretIndex = caretIndex + (uint)e.Text.Length;
|
||||
codeTextView.InsertText(caretIndex_old, e.Text);
|
||||
selectionEnd = caretIndex;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user