### Godot version

4.0 stable

### System information

Manjaro Linux, kernel 6.1.1-1-MANJARO, AMD Ryzen 5 3600, AMD RX 580

### Issue description

The `wrap_mode` property of the `TextEdit` node doesn't seem to really do anything. Setting it to `LINE_WRAPPING_BOUNDARY` simply means that there won't be an horizontal scrollbar if the text overshoots the boundary, instead of actually forcing the text to the next line so that it stays visible.

### Steps to reproduce

Create a TextEdit node and set its `wrap_mode` property to `LINE_WRAPPING_BOUNDARY`

### Minimal reproduction project

[WrapBugDemo.zip](https://github.com/godotengine/godot/files/10875969/WrapBugDemo.zip)

void _update_selection_mode_line();
	void _pre_shift_selection(int p_caret);
	void _post_shift_selection(int p_caret);
	
	LineWrappingMode line_wrapping_mode = LineWrappingMode::LINE_WRAPPING_NONE;
	int wrap_at_column = 0;
	int wrap_right_offset = 10;
	void _update_wrap_at_column(bool p_force = false);
	
	HScrollBar *h_scroll = nullptr;
	VScrollBar *v_scroll = nullptr;
	float content_height_cache = 0.0;
	bool fit_content_height = false;
	bool scroll_past_end_of_file_enabled = false;
	
	bool smooth_scroll_enabled = false;
	float target_v_scroll = 0.0;
	float v_scroll_speed = 80.0;
	
	int first_visible_line = 0;
	int first_visible_line_wrap_ofs = 0;
	int first_visible_col = 0;
	bool scrolling = false;
	bool updating_scrolls = false;
	void _update_scrollbars();
	int _get_control_height() const;
	void _v_scroll_input();
	void _scroll_moved(double p_to_val);
	double _get_visible_lines_offset() const;
	double _get_v_scroll_offset() const;