### 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 get_line_count() const;
	void set_placeholder(const String &p_text);
	String get_placeholder() const;
	void set_line(int p_line, const String &p_new_text);
	String get_line(int p_line) const;
	int get_line_width(int p_line, int p_wrap_index = -1) const;
	int get_line_height() const;
	int get_indent_level(int p_line) const;
	int get_first_non_whitespace_column(int p_line) const;
	void swap_lines(int p_from_line, int p_to_line);
	void insert_line_at(int p_at, const String &p_text);
	void insert_text_at_caret(const String &p_text, int p_caret = -1);
	void remove_text(int p_from_line, int p_from_column, int p_to_line, int p_to_column);
	int get_last_unhidden_line() const;
	int get_next_visible_line_offset_from(int p_line_from, int p_visible_amount) const;
	Point2i get_next_visible_line_index_offset_from(int p_line_from, int p_wrap_index_from, int p_visible_amount) const;
	
	void handle_unicode_input(const uint32_t p_unicode, int p_caret = -1);
	void backspace(int p_caret = -1);
	void cut(int p_caret = -1);
	void copy(int p_caret = -1);
	void paste(int p_caret = -1);
	void paste_primary_clipboard(int p_caret = -1);
	
	PopupMenu *get_menu() const;
	bool is_menu_visible() const;
	void menu_option(int p_option);
	
	void start_action(EditAction p_action);
	void end_action();