Skip to content

Commit 8638a71

Browse files
committed
Fix outline function names
1 parent 2633fda commit 8638a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modes/python/mode.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func _generate_outline(text: String) -> Array:
8383
for l in text.split("\n").size():
8484
var line := text.split("\n")[l]
8585
if line.begins_with("def "):
86-
outline.append([line.substr(5, line.find("(") - 5),l])
86+
outline.append([line.substr(4, line.find("(") - 4),l])
8787
return outline
8888

8989

0 commit comments

Comments
 (0)