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

} while (cc != quotation);
									} else if (cc == c) {
										stack++;
									} else if (cc == closec) {
										stack--;
									}
									if (stack == 0) {
										brace_matching.write[caret].close_match_line = i;
										brace_matching.write[caret].close_match_column = j;
										brace_matching.write[caret].close_matching = true;
										break;
									}
								}
								if (brace_matching.write[caret].close_match_line != -1) {
									break;
								}
							}
							if (!brace_matching.write[caret].close_matching) {
								brace_matching.write[caret].close_mismatch = true;
							}
						}
					}
				}
			}
			bool draw_placeholder = text.size() == 1 && text[0].is_empty() && ime_text.is_empty();
			
			String highlighted_text = get_selected_text(0);
			
			bool only_whitespaces_highlighted = highlighted_text.strip_edges().is_empty();
			HashMap<int, HashSet<int>> caret_line_wrap_index_map;