Skip to content

Commit fc36cb5

Browse files
committed
fixed dir
1 parent 1c34da6 commit fc36cb5

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

CutCode/BindableAvalonEditor.cs renamed to CutCode/Controllers/BindableAvalonEditor.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public class BindableAvalonEditor : ICSharpCode.AvalonEdit.TextEditor, INotifyPr
1313
/// <summary>
1414
/// A bindable Text property
1515
/// </summary>
16+
1617
public new string Text
1718
{
1819
get
@@ -61,13 +62,23 @@ protected static void OnDependencyPropertyChanged(DependencyObject obj, Dependen
6162
}
6263
}
6364

65+
private List<char> uniqueChars = new List<char>()
66+
{
67+
"'"[0], '"', '(', '[', '{', '<'
68+
};
69+
70+
private List<char> uniqueExtChars = new List<char>()
71+
{
72+
"'"[0], '"', ')', ']', '}', '>'
73+
};
74+
private int oldText = 0;
75+
6476
protected override void OnTextChanged(EventArgs e)
6577
{
6678
if (this.Document != null)
6779
{
68-
Text = this.Document.Text;
80+
Text = Document.Text;
6981
}
70-
7182
base.OnTextChanged(e);
7283
}
7384

0 commit comments

Comments
 (0)