Skip to content

Commit d48dba4

Browse files
committed
fix tag edit on window
1 parent ed9d0bd commit d48dba4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/edit.gd

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ func update_file_name(new_name: String):
112112

113113
tags = ""
114114

115-
var new_file_path = slash + slash.join(dir_parts)
115+
var starting_slash = "" if Utils.is_os_windows() else Utils.SLASH_UNIX
116+
var new_file_path = starting_slash + slash.join(dir_parts)
116117

117118
print("New file name\n %s\n %s" % [active_dir, new_file_path])
118119

0 commit comments

Comments
 (0)