mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-23 16:22:24 +03:00
I have seen cases where during a rebase (two nonModelItems) all entries in viewIndicesByModelIndex beyond the second nonModelItem were off by 4 rather than 2 as I would expect. The only explanation I have for this is that the function was called concurrently. Improve this by working on a local variable and only assign to self at the end; this is not a real fix for the concurrency issue of course, but it makes it much less likely to be a problem in practice.
4.0 KiB
4.0 KiB