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

void set_caret_blink_interval(const float p_interval);
	float get_caret_blink_interval() const;
	void set_draw_caret_when_editable_disabled(bool p_enable);
	bool is_drawing_caret_when_editable_disabled() const;
	void set_move_caret_on_right_click_enabled(const bool p_enabled);
	bool is_move_caret_on_right_click_enabled() const;
	void set_caret_mid_grapheme_enabled(const bool p_enabled);
	bool is_caret_mid_grapheme_enabled() const;
	void set_multiple_carets_enabled(bool p_enabled);
	bool is_multiple_carets_enabled() const;
	int add_caret(int p_line, int p_col);
	void remove_caret(int p_caret);
	void remove_secondary_carets();
	void merge_overlapping_carets();
	int get_caret_count() const;
	void add_caret_at_carets(bool p_below);
	Vector<int> get_caret_index_edit_order();
	void adjust_carets_after_edit(int p_caret, int p_from_line, int p_from_col, int p_to_line, int p_to_col);
	bool is_caret_visible(int p_caret = 0) const;
	Point2 get_caret_draw_pos(int p_caret = 0) const;
	void set_caret_line(int p_line, bool p_adjust_viewport = true, bool p_can_be_hidden = true, int p_wrap_index = 0, int p_caret = 0);
	int get_caret_line(int p_caret = 0) const;
	void set_caret_column(int p_col, bool p_adjust_viewport = true, int p_caret = 0);
	int get_caret_column(int p_caret = 0) const;
	int get_caret_wrap_index(int p_caret = 0) const;
	String get_word_under_caret(int p_caret = -1) const;
	
	void set_selecting_enabled(const bool p_enabled);
	bool is_selecting_enabled() const;
	void set_deselect_on_focus_loss_enabled(const bool p_enabled);