Skip to content

Fix #1000: [Bug]: sort_by: 'insert_at_end' works unexpectedly - #1056

Open
victorwon2001 wants to merge 1 commit into
akinsho:mainfrom
victorwon2001:fix/issue-1000
Open

victorwon2001 wants to merge 1 commit into
akinsho:mainfrom
victorwon2001:fix/issue-1000

Conversation

@victorwon2001

@victorwon2001 victorwon2001 commented Aug 31, 2026 •

Copy link
Copy Markdown

Fixes #1000

Implementation summary

insert_at_end now preserves previously rendered buffer order and appends unseen buffers, with deterministic ID ordering for multiple new buffers. Added regression coverage for lower-numbered buffers across redraws.

Changes

lua/bufferline/sorters.lua | 15 ++++++++++-----
 tests/sorters_spec.lua     | 29 +++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 5 deletions(-)

Testing

Yes. Relevant repository checks passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: sort_by: 'insert_at_end' works unexpectedly

1 participant