ui icon indicating copy to clipboard operation
ui copied to clipboard

Bugs when Interacting with mbbill/undotree

Open rennsax opened this issue 11 months ago • 2 comments

Describe the bug mbbill/undotree uses an extra buffer to show diff information like this:

image

The buffer appears on the tabufline, which is expected.

However, when the undotree is toggled down, the buffer remains:

image

When I tried to view the buffer with <Tab> or mouse click, Neovim immediately crashed.

To Reproduce Steps to reproduce the behavior:

  1. Install mbbill/undotree.
  2. Open an arbitrary file.
  3. Open undotree, then close.
  4. Press <Tab>, or click to the diff buffer. Neovim immediately crashes.

Expected behavior The buffer shouldn't appear on the tabufline after undotree is closed.

Screenshots Above.

Desktop (please complete the following information):

  • Operating System: macOS 14.3.1
  • Terminal: iTerm2 / Neovide
  • Version of Neovim: v0.9.5

Additional context None.

rennsax avatar Mar 16 '24 04:03 rennsax

undotree uses eventignore... its hard to track it :/

https://github.com/mbbill/undotree/issues/174

siduck avatar Mar 16 '24 05:03 siduck

@akinsho how do you handle such edgecases?

siduck avatar May 18 '24 04:05 siduck