Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(view): prevent accidentally changing buffer in lazy window #1753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chrisgrieser
Copy link

Description

Adds the new winfixbuf to the window options of the lazy window. This makes the buffer "sticky", preventing accidentally switching to another buffer while in that window, e.g. via :edit {some file}.

winfixbuf is only available on newer nvim versions, so adding the option is wrapped in a condition checking whether it is supported.

Related Issue(s)

See the PR at nvim core neovim/neovim#12517

Adds the new `winfixbuf` to the window options of the lazy window. This makes the buffer "sticky", preventing accidentally switching to another buffer while in that window, e.g. via `:edit`. See the PR at nvim core neovim/neovim#12517

`winfixbuf` is only available on newer nvim versions, so adding the option is wrapped in a condition checking whether it is supported.
@chrisgrieser chrisgrieser changed the title fix: prevent accidentally changing buffer in lazy window fix(view): prevent accidentally changing buffer in lazy window Sep 19, 2024
Copy link
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant