diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-19 21:16:27 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-19 21:16:27 +1000 |
commit | a5ee61c117a7b1e895cced1c131eb52d8c1e5236 (patch) | |
tree | cab29f4411ecdc128b4dc7e76a11429c28f9b14f /vendor/github.com | |
parent | be02786dad8785abc214cb5bfeee657033761945 (diff) |
Properly fix accordion issue
The true issue was that we were focusing the line in the view before it gets resized in the layout function.
This meant if the view was squashed in accordion mode, the view wouldn't know how to set the cursor/origin to
focus the line.
Now we've got a queue of 'after layout' functions i.e. functions to call at the end of the layout function,
right before views are drawn.
The only caveat is that we can't have an infinite buffer so we're arbitrarily capping it at 1000 and dropping
functions if we exceed that limit. But that really should never happen.
Diffstat (limited to 'vendor/github.com')
0 files changed, 0 insertions, 0 deletions