mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When performing code completion at the end of a file, the IDE inspection target would point to the null byte terminating the end of the string. That would cause us to consider this null byte as a code completion marker. When continuing to scan for the actual EOF, we would walk past the end of the buffer. Simply don’t consider the last null byte as a candidate for the code completion marker to fix the problem.
2 lines
55 B
Swift
2 lines
55 B
Swift
// RUN: %sourcekitd-test -req=cursor -pos=2:1 %s -- %s
|