We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d684e32 commit d7d7e3eCopy full SHA for d7d7e3e
Core/Sources/SuggestionInjector/SuggestionInjector.swift
@@ -104,11 +104,11 @@ public struct SuggestionInjector {
104
)
105
}
106
107
- // if the suggestion is only appeding new lines and spaces, return without modification
+ // if the suggestion is only appending new lines and spaces, return without modification
108
if completion.text.dropFirst(commonPrefix.count)
109
.allSatisfy({ $0.isWhitespace || $0.isNewline }) { return }
110
111
- // determin if it's inserted to the current line or the next line
+ // determine if it's inserted to the current line or the next line
112
let lineIndex = start.line + {
113
guard let existedLine else { return 0 }
114
if existedLine.isEmptyOrNewLine { return 1 }
0 commit comments