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

if (is_move_caret_on_right_click_enabled()) {
					if (has_selection()) {
						for (int i = 0; i < get_caret_count(); i++) {
							int from_line = get_selection_from_line(i);
							int to_line = get_selection_to_line(i);
							int from_column = get_selection_from_column(i);
							int to_column = get_selection_to_column(i);
							if (row >= from_line && row <= to_line && (row != from_line || col >= from_column) && (row != to_line || col <= to_column)) {
								
								selection_clicked = true;
								break;
							}
						}
					}
					if (!selection_clicked) {
						deselect();
						remove_secondary_carets();
						set_caret_line(row, false, false);
						set_caret_column(col);
					}
					merge_overlapping_carets();
				}
				if (context_menu_enabled) {
					_update_context_menu();
					menu->set_position(get_screen_position() + mpos);
					menu->reset_size();
					menu->popup();
					grab_focus();
				}
			}