fix: whitespace in new line completions
This commit is contained in:
parent
403eb38b9e
commit
4db2637d5b
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue