semi-idle-arpg/addons/godot_vim/commands/goto.gd

8 lines
202 B
GDScript3
Raw Normal View History

2024-09-19 19:03:06 -06:00
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)