mirror of https://github.com/buggins/dlangui.git
fix dlangide issue 33 - openging of .json file in editor causes crash
This commit is contained in:
parent
fca69bd34e
commit
fcda30b159
|
@ -503,8 +503,10 @@ class EditableContent {
|
||||||
|
|
||||||
@property EditableContent syntaxHighlighter(SyntaxHighlighter syntaxHighlighter) {
|
@property EditableContent syntaxHighlighter(SyntaxHighlighter syntaxHighlighter) {
|
||||||
_syntaxHighlighter = syntaxHighlighter;
|
_syntaxHighlighter = syntaxHighlighter;
|
||||||
_syntaxHighlighter.content = this;
|
if (_syntaxHighlighter) {
|
||||||
updateTokenProps(0, cast(int)_lines.length);
|
_syntaxHighlighter.content = this;
|
||||||
|
updateTokenProps(0, cast(int)_lines.length);
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue