### 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
}
			} else if (sst_lower_start != -1 && *sst_lower) {
				sst_lower = &string_to_complete[0];
				sst_lower_start = -1;
			}
			
			if (*ssq_lower == *tgt_lower) {
				ssq_lower++;
				if (ssq_lower_match_len == 0) {
					ssq_lower_match_start = i;
				}
				ssq_lower_match_len++;
			} else if (ssq_lower_match_len > 0) {
				ssq_lower_matches.push_back(Pair<int, int>(ssq_lower_match_start, ssq_lower_match_len));
				ssq_lower_match_len = 0;
			}
		}
		
		if (!*ssq) { 
			option.matches.clear();
			if (sst_start == 0) { 
				option.matches.push_back(Pair<int, int>(sst_start, string_to_complete.length()));
				code_completion_options.push_back(option);
			} else if (sst_start > 0) { 
				option.matches.push_back(Pair<int, int>(sst_start, string_to_complete.length()));
				completion_options_substr.push_back(option);
			} else {
				if (ssq_match_len > 0) {
					ssq_matches.push_back(Pair<int, int>(ssq_match_start, ssq_match_len));
				}