Skip to content

Comments

fix: set 'buftype' to nofile instead of nowrite#154

Open
loqusion wants to merge 1 commit intombbill:masterfrom
loqusion:patch-1
Open

fix: set 'buftype' to nofile instead of nowrite#154
loqusion wants to merge 1 commit intombbill:masterfrom
loqusion:patch-1

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