-
Notifications
You must be signed in to change notification settings - Fork 101
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
[bug] undotree become empty #129
Comments
the tree should show up once you move the focus to the right side |
Thanks. When I |
I'm not exactly sure, but I guess it might be related to how VIM handles the 'previous window'. |
So it is a bug of (n)vim? 😄 |
Also, experiencing this bug. Closing undotree window with |
I made this hack in local function enter_undotree()
vim.api.nvim_command('UndotreeShow')
local is_glitched = vim.fn.getreg('%') == 'undotree_2'
if is_glitched then
vim.api.nvim_command [[
wincmd w
wincmd w
wincmd p
]]
else
vim.api.nvim_command('UndotreeFocus')
end
end |
Press
<C-w>o
Press
:UndotreeShow<CR>
The undotree is empty!
The text was updated successfully, but these errors were encountered: