### 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
switch (p_what) {
		case NOTIFICATION_THEME_CHANGED:
		case NOTIFICATION_ENTER_TREE: {
			style_normal = get_theme_stylebox(SNAME("normal"));
			font = get_theme_font(SNAME("font"));
			font_size = get_theme_font_size(SNAME("font_size"));
			line_spacing = get_theme_constant(SNAME("line_spacing"));
			set_gutter_width(main_gutter, get_line_height());
			set_gutter_width(line_number_gutter, (line_number_digits + 1) * font->get_char_size('0', font_size).width);
			set_gutter_width(fold_gutter, get_line_height() / 1.2);
			breakpoint_color = get_theme_color(SNAME("breakpoint_color"));
			breakpoint_icon = get_theme_icon(SNAME("breakpoint"));
			bookmark_color = get_theme_color(SNAME("bookmark_color"));
			bookmark_icon = get_theme_icon(SNAME("bookmark"));
			executing_line_color = get_theme_color(SNAME("executing_line_color"));
			executing_line_icon = get_theme_icon(SNAME("executing_line"));
			line_number_color = get_theme_color(SNAME("line_number_color"));
			folding_color = get_theme_color(SNAME("code_folding_color"));
			can_fold_icon = get_theme_icon(SNAME("can_fold"));
			folded_icon = get_theme_icon(SNAME("folded"));
			code_completion_max_width = get_theme_constant(SNAME("completion_max_width"));
			code_completion_max_lines = get_theme_constant(SNAME("completion_lines"));
			code_completion_scroll_width = get_theme_constant(SNAME("completion_scroll_width"));
			code_completion_scroll_color = get_theme_color(SNAME("completion_scroll_color"));
			code_completion_scroll_hovered_color = get_theme_color(SNAME("completion_scroll_hovered_color"));
			code_completion_background_color = get_theme_color(SNAME("completion_background_color"));
			code_completion_selected_color = get_theme_color(SNAME("completion_selected_color"));