Skip to content

fix(buffers): Fix fallback for finding a buffer by filename#1126

Merged
kristijanhusak merged 1 commit intomasterfrom
fix/buffer-manager
Apr 15, 2026
Merged

fix(buffers): Fix fallback for finding a buffer by filename#1126
kristijanhusak merged 1 commit intomasterfrom
fix/buffer-manager

Conversation

@kristijanhusak
Copy link
Copy Markdown
Member

Summary

Correctly fallback to finding an org file buffer in case it is not loaded into the state.

Related Issues

Related #1121

Closes #1121

Changes

  • Use bufnr to find the buffer name
  • Verify if the filename of the given buffer is actually the one we are looking for
  • If not, use nvim_list_bufs

Checklist

I confirm that I have:

  • Followed the
    Conventional Commits
    specification
    (e.g., feat: add new feature, fix: correct bug,
    docs: update documentation).
  • My PR title also follows the conventional commits specification.
  • Updated relevant documentation, if necessary.
  • Thoroughly tested my changes.
  • Added tests (if applicable) and verified existing tests pass with
    make test.
  • Checked for breaking changes and documented them, if any.

@kristijanhusak kristijanhusak merged commit a214db3 into master Apr 15, 2026
11 checks passed
@kristijanhusak kristijanhusak deleted the fix/buffer-manager branch April 15, 2026 07:11
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.

1 participant