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

if (!selecting_enabled || !is_multiple_carets_enabled()) {
		return;
	}
	if (text.size() == 1 && text[0].length() == 0) {
		return;
	}
	
	
	int caret = get_caret_count() - 1;
	if (!has_selection(caret)) {
		select_word_under_caret(caret);
		return;
	}
	const String &highlighted_text = get_selected_text(caret);
	int column = get_selection_from_column(caret) + 1;
	int line = get_caret_line(caret);
	const Point2i next_occurrence = search(highlighted_text, SEARCH_MATCH_CASE, line, column);
	if (next_occurrence.x == -1 || next_occurrence.y == -1) {
		return;
	}
	int to_column = get_selection_to_column(caret) + 1;
	int end = next_occurrence.x + (to_column - column);
	int new_caret = add_caret(next_occurrence.y, end);
	if (new_caret != -1) {
		select(next_occurrence.y, next_occurrence.x, next_occurrence.y, end, new_caret);
		adjust_viewport_to_caret(new_caret);
		merge_overlapping_carets();
	}
}
void TextEdit::select(int p_from_line, int p_from_column, int p_to_line, int p_to_column, int p_caret) {