### 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)

int caret_idx = caret_edit_order[i];
		if (has_selection(caret_idx)) {
			delete_selection(caret_idx);
			continue;
		}
		int curline_len = text[get_caret_line(caret_idx)].length();
		if (get_caret_line(caret_idx) == text.size() - 1 && get_caret_column(caret_idx) == curline_len) {
			continue; 
		}
		int next_line = get_caret_column(caret_idx) < curline_len ? get_caret_line(caret_idx) : get_caret_line(caret_idx) + 1;
		int next_column;
		if (p_all_to_right) {
			
			for (int j = i + 1; j < caret_edit_order.size(); j++) {
				if (get_caret_line(caret_edit_order[j]) != get_caret_line(caret_idx)) {
					break;
				}
				if (has_selection(caret_edit_order[j]) && get_selection_from_line(caret_edit_order[j]) != get_caret_line(caret_idx)) {
					break;
				}
				if (!has_selection(caret_edit_order[j])) {
					i = j;
					caret_idx = caret_edit_order[i];
				}
			}
			if (get_caret_column(caret_idx) == curline_len) {
				continue;
			}
			
			next_column = curline_len;