diff --git a/core/autocomplete/postprocessing/index.ts b/core/autocomplete/postprocessing/index.ts index 8258450d0..ed7c41f05 100644 --- a/core/autocomplete/postprocessing/index.ts +++ b/core/autocomplete/postprocessing/index.ts @@ -121,11 +121,8 @@ export function postprocessCompletion({ // } // If prefix ends with space and so does completion, then remove the space from completion - if ( - prefix.split("\n").pop()?.trim() !== "" && - prefix.endsWith(" ") && - completion.startsWith(" ") - ) { + + if (prefix.endsWith(" ") && completion.startsWith(" ")) { completion = completion.slice(1); }