zen-mode.nvim icon indicating copy to clipboard operation
zen-mode.nvim copied to clipboard

Segmentation fault when using with fzf

Open David-Else opened this issue 4 years ago • 6 comments

I am afraid that I get a segmentation fault with it and fzf.vim/fzf.

  1. open fzf history with :History!, open a file
  2. toggle zen mode on
  3. open fzf history with :History!, open a file

Segmentation fault (core dumped)

NVIM v0.5.0-dev+1326-ge0a01bdf7 (latest today)

David-Else avatar May 17 '21 12:05 David-Else

Have you tried opening FZz multiple times without starting zen Mode? Today's built might be broken.

Either way, segmentation faults like this can not be caused by a lua plugin. This means something funky is going on inside the neovim code base. Most likely related to the new z-index in this case.

folke avatar May 17 '21 13:05 folke

I did try :History! many times with your plugin disabled and it works fine.

David-Else avatar May 17 '21 13:05 David-Else

I'll look into it somewhere tomorrow.

folke avatar May 17 '21 13:05 folke

I was able to reproduce this and created an issue in Neovim

folke avatar May 18 '21 09:05 folke

@folke This bug seems to have changed with latest Neovim/zen-mode:

  • open fzf history with :History!, open a file
  • toggle zen mode on
  • open fzf history with :History!

Now zen mode closes suddenly and fzf does not open, instead you are left with the remains of a fzf window:

t//~/D/p/p/f//4/h/d/d/n/.c/n/p/f/b/f/h/d/d/n/.c/n/p/f/b/p/:/t/n/3;#FZF  filename.md 

These remains won't go away (in normal non-zen mode) and seem pinned at the top of the screen, even if you scroll down. When you toggle to zen mode they go away temporarily.

David-Else avatar Jun 23 '21 14:06 David-Else