### Godot version

4.1

### System information

Windows

### Issue description

Being able to have multiple cursors similarly to vscode is a great feature, however it's only possible to add carets, not remove them. By left clicking you can remove all extra cursors but you cannot remove a specific one so after selecting multiple lines a single missclick, you have to reselect them all again. Looking at the original pr there was a remove_caret function added so it would make sense to be able to remove carets when clicking again, like in vscode.

![image](https://github.com/godotengine/godot/assets/19669673/3867c00e-9faa-4429-9c6d-f2d6d3883044)


### Steps to reproduce

- Alt click to add multiple carets
- Alt click on the same position again
- Nothing happens

### Minimal reproduction project

N/A
int line_width = 0;
	for (const Line &l : text) {
		if (l.hidden) {
			continue;
		}
		
		if (l.width == max_width) {
			line_width = max_width;
			break;
		}
		line_width = MAX(line_width, l.width);
	}
	max_width = line_width;
}
void TextEdit::Text::invalidate_cache(int p_line, int p_column, bool p_text_changed, const String &p_ime_text, const Array &p_bidi_override) {
	ERR_FAIL_INDEX(p_line, text.size());
	if (font.is_null()) {
		return; 
	}
	if (p_text_changed) {
		text.write[p_line].data_buf->clear();
	}
	text.write[p_line].data_buf->set_width(width);