Fix crash with get_keywords_color
This commit is contained in:
parent
197b65f32a
commit
8d993f6357
1 changed files with 2 additions and 0 deletions
|
@ -4682,6 +4682,8 @@ bool TextEdit::has_keyword_color(String p_keyword) const {
|
|||
}
|
||||
|
||||
Color TextEdit::get_keyword_color(String p_keyword) const {
|
||||
|
||||
ERR_FAIL_COND_V(!keywords.has(p_keyword), Color())
|
||||
return keywords[p_keyword];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue