semi-idle-arpg/addons/godot_vim/commands/goto.gd
2024-09-19 19:03:06 -06:00

8 lines
202 B
GDScript

const Constants = preload("res://addons/godot_vim/constants.gd")
const MODE = Constants.Mode
func execute(api, args):
api.cursor.set_caret_pos(args.to_int() - 1, 0)
api.cursor.set_mode(MODE.NORMAL)