summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2019-12-14 18:46:34 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2019-12-14 18:46:34 +0800
commitd3851d5452ae14f6c1b57a9b60efcbf594db0f0c (patch)
tree623626ce96692fb30efe71b283be8690de9b7955
parent3a9284b562d6dcfc339322999767168e12220895 (diff)
Show enum class name when not on the same doc page
Variant.Type and Variant.Operator are listed on GlobalScope page instead of Variant. The `Variant` prefix should not be omitted on that page.
-rw-r--r--editor/editor_help.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 9b7f255e46..bbbb50297f 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -798,7 +798,7 @@ void EditorHelp::_update_doc() {
class_desc->pop();
class_desc->push_font(doc_code_font);
String e = E->key();
- if (e.get_slice_count(".")) {
+ if ((e.get_slice_count(".") > 1) && (e.get_slice(".", 0) == edited_class)) {
e = e.get_slice(".", 1);
}