mirror of https://github.com/helix-editor/helix
Use the original document and view for mode transition hooks (#3508)
When changing focus, the lookup with `current!` may change the view and end up executing mode transition hooks on the newly focused view. We should use the same view and document to execute mode transition hooks so that switching away from a view triggers history save points.pull/2634/head
parent
16525349db
commit
9e24f2aa81
Loading…
Reference in New Issue