mirror of
https://github.com/helix-editor/helix
synced 2026-08-05 14:42:57 +02:00
Files outside the watched workspace are reloaded only by the poll handler. Re-check them on FocusGained too: regaining focus is when the user has most likely just edited them elsewhere. With focus covering the common case, the poll becomes a backstop: its default interval moves from 5s to 30s. Both the poll and the focus check would re-fire an unsaved buffer whose file changed on disk (the reload is skipped, so last_saved_time never advances), stacking a fresh prompt/warning every tick. Track the on-disk mtime and show the conflict once until it advances again.