Browse Source

Merge pull request #12647 from leezh/dedent_return

Fixed dedent() binding did not return result
Poommetee Ketson 7 years ago
parent
commit
f7a41c1e30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/variant_call.cpp

+ 1 - 1
core/variant_call.cpp

@@ -1458,7 +1458,7 @@ void register_variant_methods() {
 	ADDFUNC0R(STRING, STRING, String, get_basename, varray());
 	ADDFUNC1R(STRING, STRING, String, plus_file, STRING, "file", varray());
 	ADDFUNC1R(STRING, INT, String, ord_at, INT, "at", varray());
-	ADDFUNC0(STRING, STRING, String, dedent, varray());
+	ADDFUNC0R(STRING, STRING, String, dedent, varray());
 	ADDFUNC2(STRING, NIL, String, erase, INT, "position", INT, "chars", varray());
 	ADDFUNC0R(STRING, INT, String, hash, varray());
 	ADDFUNC0R(STRING, STRING, String, md5_text, varray());