You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(highlight): respect auto_focus toggle in workspace edit handler
The workspace/applyEdit handler always opened and scrolled to edited files
regardless of the auto_focus setting. When the user toggled auto_focus off
via :CrushFocusOff or the API, the handler ignored this because:
1. highlight.lua had its own config copy that was never updated when
init.lua toggled auto_focus
2. ensure_buffer_visible always opened new windows for edited buffers
Fix: pass a callback from init.lua to highlight.lua that reads the live
config.auto_focus state. When auto_focus is off, edits are still applied
and visible buffers still get flash highlights, but the handler no longer
opens new windows or scrolls to the edit location.
0 commit comments