mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-23 09:01:16 +01:00
af4c4c7cf0
Instead of looking for `\n` as a stopping condition, we cap the range we pass to `SuggestionSnapshot::chunks` to stop on the next line. This makes character searching faster, because looking for a single character uses `memchr`. Also, this avoids an extra conditional in a tight loop such as the chunk scanning one contained in `TabMap::sync`.