### Godot version

Godot 4.0 statble

### System information

Windows 10

### Issue description

TextEdit boundary wrapmode not works, it only removes the horizontal scrollbar

### Steps to reproduce

Add a textedit in editor, set  the wrap mode to boundary, type something.

### Minimal reproduction project

![image](https://user-images.githubusercontent.com/9168814/224538077-2efb4e67-8976-496e-9223-c460365ecc28.png)
![image](https://user-images.githubusercontent.com/9168814/224538084-af773b86-d73a-4e8b-9b66-a0fb4bde1168.png)

return text[p_line].data;
}
void TextEdit::Text::_calculate_line_height() {
	int height = 0;
	for (const Line &l : text) {
		
		if (l.height == line_height) {
			height = line_height;
			break;
		}
		height = MAX(height, l.height);
	}
	line_height = height;
}
void TextEdit::Text::_calculate_max_line_width() {
	int line_width = 0;
	for (const Line &l : text) {
		if (l.hidden) {
			continue;
		}
		
		if (l.width == max_width) {
			line_width = max_width;
			break;
		}
		line_width = MAX(line_width, l.width);
	}
	max_width = line_width;
}
void TextEdit::Text::invalidate_cache(int p_line, int p_column, bool p_text_changed, const String &p_ime_text, const Array &p_bidi_override) {