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: set 'buftype' to nofile instead of nowrite #154

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

Conversation

loqusion
Copy link

For context, I have deactivate set to run UndotreeHide on exit in my lazy.nvim config. When this happens, and I restore the session that was automatically created with :mks, the window created by undotree still persists (ignore the strange window width as that's caused by a separate plugin):

Kapture 2023-04-20 at 10 48 27

However, if I set 'buftype' to nofile before exiting, it seems to fix the problem:

Kapture 2023-04-20 at 10 50 59

Setting 'buftype' to nofile also fixes the issue where the buffer title changes when you :cd, although this is minor.

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