### Godot version

4.0 beta 10

### System information

Windows 11

### Issue description

On the text editor when using autocomplete on function arguments that receive Input Map names after autocompleting the function name, the string autocompleted appears with an extra " at the end.
This doesnt happen if you write " and then accept the Input name in the dropdown

### Steps to reproduce

- On the script editor
- Start writing `Input.get_vector` but when the dropdown appears with the autocomplete suggestion for `Input.get_vector` press enter to accept it, then press enter again to accept the Input map suggestion
- The autocompleted input name should have an extra "

### Minimal reproduction project

N/A
caret_pos.x += 60;
		SEND_GUI_MOUSE_BUTTON_EVENT(code_edit, caret_pos, MouseButton::NONE, 0, Key::NONE);
		CHECK(code_edit->get_text_for_symbol_lookup() == "this is s" + String::chr(0xFFFF) + "ome text");
		SIGNAL_WATCH(code_edit, "symbol_validate");
#ifdef MACOS_ENABLED
		SEND_GUI_KEY_EVENT(code_edit, Key::META);
#else
		SEND_GUI_KEY_EVENT(code_edit, Key::CTRL);
#endif
		Array signal_args;
		Array arg;
		arg.push_back("some");
		signal_args.push_back(arg);
		SIGNAL_CHECK("symbol_validate", signal_args);
		SIGNAL_UNWATCH(code_edit, "symbol_validate");
		memdelete(code_edit);
	}
}
TEST_CASE("[SceneTree][CodeEdit] line length guidelines") {
	CodeEdit *code_edit = memnew(CodeEdit);
	SceneTree::get_singleton()->get_root()->add_child(code_edit);
	code_edit->grab_focus();
	TypedArray<int> guide_lines;
	code_edit->set_line_length_guidelines(guide_lines);
	CHECK(code_edit->get_line_length_guidelines().size() == 0);
	guide_lines.push_back(80);
	guide_lines.push_back(120);
	
	code_edit->set_line_length_guidelines(guide_lines);
	CHECK((int)code_edit->get_line_length_guidelines()[0] == 80);