folke / zen-mode.nvim

🧘 Distraction-free coding for Neovim
Apache License 2.0
1.69k stars 47 forks source link

Segmentation fault when using with fzf #1

Closed David-Else closed 2 months ago

David-Else commented 3 years ago

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)

folke commented 3 years ago

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.

David-Else commented 3 years ago

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

folke commented 3 years ago

I'll look into it somewhere tomorrow.

folke commented 3 years ago

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

David-Else commented 3 years ago

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

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.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 7 days with no activity.