### Godot version

v4.1.dev3.official [a67d37f7c]

### System information

Windows 10

### Issue description

dragging upwards from the a line number in a script inside godots script editor crashes Godot. Tested in a brand new project and still occurred. Does not seem to crash when dragging downwards but dragging from a number on the lower end of the script editor seems to cause the crash often.

### Steps to reproduce

start dragging upwards from the very last line index in the script editor. Start the drag from the line number itself. Starting the drag from the line contents works as expected. Seems to crash more in scripts with more lines.

### Minimal reproduction project

N/A
return caret_type;
}
void TextEdit::set_caret_blink_enabled(const bool p_enabled) {
	if (caret_blink_enabled == p_enabled) {
		return;
	}
	caret_blink_enabled = p_enabled;
	if (has_focus()) {
		if (p_enabled) {
			caret_blink_timer->start();
		} else {
			caret_blink_timer->stop();
		}
	}
	draw_caret = true;
}
bool TextEdit::is_caret_blink_enabled() const {
	return caret_blink_enabled;
}
float TextEdit::get_caret_blink_interval() const {
	return caret_blink_timer->get_wait_time();
}
void TextEdit::set_caret_blink_interval(const float p_interval) {
	ERR_FAIL_COND(p_interval <= 0);
	caret_blink_timer->set_wait_time(p_interval);
}
void TextEdit::set_draw_caret_when_editable_disabled(bool p_enable) {