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

uint32_t version = 0;
		bool chain_forward = false;
		bool chain_backward = false;
	};
	bool undo_enabled = true;
	int undo_stack_max_size = 50;
	EditAction current_action = EditAction::ACTION_NONE;
	bool pending_action_end = false;
	bool in_action = false;
	int complex_operation_count = 0;
	bool next_operation_is_complex = false;
	TextOperation current_op;
	List<TextOperation> undo_stack;
	List<TextOperation>::Element *undo_stack_pos = nullptr;
	Timer *idle_detect = nullptr;
	uint32_t version = 0;
	uint32_t saved_version = 0;
	void _push_current_op();
	void _do_text_op(const TextOperation &p_op, bool p_reverse);
	void _clear_redo();
	
	String search_text = "";
	uint32_t search_flags = 0;
	int _get_column_pos_of_word(const String &p_key, const String &p_search, uint32_t p_search_flags, int p_from_column) const;
	
	Callable tooltip_callback;
	
	struct LineDrawingCache {
		int y_offset = 0;
		Vector<int> first_visible_chars;