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

CHECK(text_edit->get_caret_column(1) == 1);
		ERR_PRINT_OFF;
		text_edit->remove_caret(-1);
		text_edit->remove_caret(5);
		ERR_PRINT_ON;
		CHECK(text_edit->get_caret_count() == 2);
		SIGNAL_CHECK_FALSE("caret_changed");
		text_edit->remove_caret(0);
		SIGNAL_CHECK_FALSE("caret_changed");
		CHECK(text_edit->get_caret_count() == 1);
		CHECK(text_edit->get_caret_line(0) == 0);
		CHECK(text_edit->get_caret_column(0) == 1);
		ERR_PRINT_OFF;
		text_edit->remove_caret(0);
		CHECK(text_edit->get_caret_count() == 1);
		ERR_PRINT_ON;
	}
	SUBCASE("[TextEdit] caret index edit order") {
		Vector<int> caret_index_get_order;
		caret_index_get_order.push_back(1);
		caret_index_get_order.push_back(0);
		CHECK(text_edit->add_caret(1, 0));
		CHECK(text_edit->get_caret_count() == 2);
		CHECK(text_edit->get_caret_index_edit_order() == caret_index_get_order);
		text_edit->remove_secondary_carets();
		text_edit->set_caret_line(1);
		CHECK(text_edit->add_caret(0, 0));
		CHECK(text_edit->get_caret_count() == 2);
		caret_index_get_order.write[0] = 0;
		caret_index_get_order.write[1] = 1;