diff options
author | Timo Schwarzer <me@timoschwarzer.com> | 2019-03-17 18:42:59 +0100 |
---|---|---|
committer | Timo Schwarzer <me@timoschwarzer.com> | 2019-03-17 18:42:59 +0100 |
commit | 7a0dfc04aa85d0a7c5f317252e9eb917d0aef788 (patch) | |
tree | 32ce01edf31225269e6118d13879c0df21a1192c /editor/plugins | |
parent | df7d3708c5b535c3696943322a14ec19a175e30c (diff) |
Allow whitespaces in warning-ignore comments
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 8c3f8fd3e8..44ef6b07f6 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -286,7 +286,7 @@ void ScriptTextEditor::_warning_clicked(Variant p_line) { code_editor->get_text_edit()->cursor_set_line(p_line.operator int64_t()); } else if (p_line.get_type() == Variant::DICTIONARY) { Dictionary meta = p_line.operator Dictionary(); - code_editor->get_text_edit()->insert_at("#warning-ignore:" + meta["code"].operator String(), meta["line"].operator int64_t() - 1); + code_editor->get_text_edit()->insert_at("# warning-ignore:" + meta["code"].operator String(), meta["line"].operator int64_t() - 1); _validate_script(); } } |