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

bool caret_pos_dirty = false;
	bool caret_index_edit_dirty = true;
	CaretType caret_type = CaretType::CARET_TYPE_LINE;
	bool draw_caret = true;
	bool draw_caret_when_editable_disabled = false;
	bool caret_blink_enabled = false;
	Timer *caret_blink_timer = nullptr;
	bool move_caret_on_right_click = true;
	bool caret_mid_grapheme_enabled = true;
	bool multi_carets_enabled = true;
	bool drag_action = false;
	bool drag_caret_force_displayed = false;
	void _emit_caret_changed();
	void _reset_caret_blink_timer();
	void _toggle_draw_caret();
	int _get_column_x_offset_for_line(int p_char, int p_line, int p_column) const;
	
	SelectionMode selecting_mode = SelectionMode::SELECTION_MODE_NONE;
	bool selecting_enabled = true;
	bool deselect_on_focus_loss_enabled = true;
	bool drag_and_drop_selection_enabled = true;
	bool use_selected_font_color = false;
	bool selection_drag_attempt = false;
	bool dragging_selection = false;
	Timer *click_select_held = nullptr;
	uint64_t last_dblclk = 0;
	Vector2 last_dblclk_pos;
	void _click_selection_held();
	void _update_selection_mode_pointer();
	void _update_selection_mode_word();