This commit is contained in:
parent
5f239397f6
commit
a6e6392c65
@ -724,7 +724,11 @@ namespace Volian.Controls.Library
|
||||
public bool ChangeBar
|
||||
{
|
||||
get { return _ChangeBar; }
|
||||
set { _ChangeBar = value; }
|
||||
set
|
||||
{
|
||||
_ChangeBar = value;
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
#endregion // Properties
|
||||
#region Constructors
|
||||
|
@ -989,12 +989,10 @@ namespace Volian.Controls.Library
|
||||
private void HandleSelectionChange()
|
||||
{
|
||||
if (_HandlingCtrlA) return;
|
||||
Console.WriteLine("Before: SelectionStart={0}, SelectionLength={1}, TextLength={2}, SelectedText='{3}', SelectedRtf='{4}'", this.SelectionStart, this.SelectionLength, this.TextLength, this.SelectedText, this.SelectedRtf.Substring(SelectedRtf.Length - 10));
|
||||
if (!_HandlingCtrlA && this.TextLength == this.SelectionLength && this.SelectedRtf.EndsWith("\\par\r\n}\r\n"))
|
||||
{
|
||||
_HandlingCtrlA = true;
|
||||
SelectAll();
|
||||
Console.WriteLine("After: SelectionStart={0}, SelectionLength={1}, TextLength={2}, SelectedText='{3}', SelectedRtf='{4}'", this.SelectionStart, this.SelectionLength, this.TextLength, this.SelectedText, this.SelectedRtf.Substring(SelectedRtf.Length - 10));
|
||||
_HandlingCtrlA = false;
|
||||
}
|
||||
//HandleOverWrite();
|
||||
|
Loading…
x
Reference in New Issue
Block a user