Skip to content

Commit 865ed7a

Browse files
committed
Fix that a suggestion may always be invalidated if it contains emoji
1 parent d93c90a commit 865ed7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tool/Sources/WorkspaceSuggestionService/Filespace+SuggestionService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public extension Filespace {
118118
}
119119

120120
// undo to a state before the suggestion was generated
121-
if editingLine.count < presentingSuggestion.position.character {
121+
if editingLine.utf16.count < presentingSuggestion.position.character {
122122
reset()
123123
resetSnapshot()
124124
return false

0 commit comments

Comments
 (0)