### 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
return draw_executing_lines;
}
void CodeEdit::_main_gutter_draw_callback(int p_line, int p_gutter, const Rect2 &p_region) {
	if (draw_breakpoints && breakpoint_icon.is_valid()) {
		bool breakpointed = is_line_breakpointed(p_line);
		bool hovering = p_region.has_point(get_local_mouse_pos());
		bool shift_pressed = Input::get_singleton()->is_key_pressed(Key::SHIFT);
		if (breakpointed || (hovering && !is_dragging_cursor() && !shift_pressed)) {
			int padding = p_region.size.x / 6;
			Color use_color = breakpoint_color;
			if (hovering && !shift_pressed) {
				use_color = breakpointed ? use_color.lightened(0.3) : use_color.darkened(0.5);
			}
			Rect2 icon_region = p_region;
			icon_region.position += Point2(padding, padding);
			icon_region.size -= Point2(padding, padding) * 2;
			breakpoint_icon->draw_rect(get_canvas_item(), icon_region, false, use_color);
		}
	}
	if (draw_bookmarks && bookmark_icon.is_valid()) {
		bool bookmarked = is_line_bookmarked(p_line);
		bool hovering = p_region.has_point(get_local_mouse_pos());
		bool shift_pressed = Input::get_singleton()->is_key_pressed(Key::SHIFT);
		if (bookmarked || (hovering && !is_dragging_cursor() && shift_pressed)) {
			int horizontal_padding = p_region.size.x / 2;
			int vertical_padding = p_region.size.y / 4;
			Color use_color = bookmark_color;
			if (hovering && shift_pressed) {