mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-08-20 00:44:27 +08:00
Pre Merge pull request !1 from 新无止竞/master
This commit is contained in:
commit
cb16a04fd9
@ -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