### 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 _scroll_up(real_t p_delta);
	void _scroll_down(real_t p_delta);
	void _scroll_lines_up();
	void _scroll_lines_down();
	
	bool draw_minimap = false;
	int minimap_width = 80;
	Point2 minimap_char_size = Point2(1, 2);
	int minimap_line_spacing = 1;
	
	bool minimap_clicked = false;
	bool hovering_minimap = false;
	bool dragging_minimap = false;
	bool can_drag_minimap = false;
	double minimap_scroll_ratio = 0.0;
	double minimap_scroll_click_pos = 0.0;
	void _update_minimap_hover();
	void _update_minimap_click();
	void _update_minimap_drag();
	
	Vector<GutterInfo> gutters;
	int gutters_width = 0;
	int gutter_padding = 0;
	Vector2i hovered_gutter = Vector2i(-1, -1); 
	void _update_gutter_width();
	
	Ref<SyntaxHighlighter> syntax_highlighter;
	Dictionary _get_line_syntax_highlighting(int p_line);
	
	struct ThemeCache {