mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-22 13:01:05 +03:00
Snapshot document search state before dispatching highlight workers and retain the searched document for the duration of each job. Publish results through MainThreadLifetime and reject results when the editor has changed document or search parameters. Remove the obsolete worker counter and destructor wait used for editor lifetime management. Use atomic cancellation flags in TextDocument::findAll() and protect active-search map inspection during destruction. Add regression coverage for concurrent cancellation, stale highlight results, rapid backtick searches after a large multiline paste, and editor destruction during active search. Refs SpartanJ/ecode#956.