diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2013-08-09 15:50:03 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2013-08-09 15:50:03 +0400 |
commit | 9262301d79f050bc1696a1a845320b551ac503e2 (patch) | |
tree | eeeba2c85280fd2f431e05d975003b25c45beadd /main/src/core/Mono.Texteditor | |
parent | 8d7a0b1a019a329d811a38979b7e3c0562788953 (diff) |
Fixed 'Bug 13789 - Changing solution configs doesn't update code with
compiler constants.'.
Diffstat (limited to 'main/src/core/Mono.Texteditor')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs index 4525d5e678..6b3c3d9c0e 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs @@ -65,12 +65,17 @@ namespace Mono.TextEditor.Highlighting SyntaxModeService.StartUpdate (doc, this, e.Offset, e.Offset + e.InsertionLength); } - void HandleTextSet (object sender, EventArgs e) + public void UpdateDocumentHighlighting () { if (doc == null || doc.SuppressHighlightUpdate) return; SyntaxModeService.StartUpdate (doc, this, 0, doc.TextLength); } + + void HandleTextSet (object sender, EventArgs e) + { + UpdateDocumentHighlighting (); + } public event EventHandler DocumentSet; |