Something went wrong. Try again.
Fork of micro-editor/micro
Something went wrong. Try again.
Fixes a bug where new `BufPanes` are not being inserted into the right array index.
When adding a new `BufPane` it is always being inserted last into `MainTab().Panes`. This leads to a confusion when using the actions `PreviousSplit`, `NextSplit` as the previous/next split may not be the expected one. How to reproduce: - Launch micro and insert char "1" - Open a new vsplit via the command `vsplit` and insert "2" - Switch back to the left split (1) by using `PreviousSplit` - Again open a new vsplit via command: `vsplit` and type char "3" - Now switch between the 3 splits using `PreviousSplit`, `NextSplit` Switching from most left split to the most right, the expected order would be 1, 3, 2 but actually is 1, 2, 3.
Author Massimo Mund Date (Sep 15, 2024, 2:36 PM UTC) Commit
Copy SHA
Parent 2e44db1e 2e44db1ee9f36f669a46e3a0b44c091895c4aab2