Skip to content

Bug: FzfLua buffers closes/deletes terminal buffers #2681

@mikesmithgh

Description

@mikesmithgh

RTFM Checklist

  • I have searched exisiting issues / discussions
  • I have read the Wiki including the Advanced section
  • I have read man fzf / I am well versed in shell fzf

Operating system

MacOS

Shell

fish

Neovim version (nvim --version)

NVIM v0.12.1

Fzf version (fzf --version)

0.71.0 (Homebrew)

Output of :lua print(os.getenv('FZF_DEFAULT_OPTS'))

--border=thinblock --scrollbar=▊ --preview-window=60%,border-thinblock --margin 1,4 --multi --layout=reverse --scroll-off=7 --height=100% --bind "alt-a:toggle-all" --history /Users/mike/.local/state/fzf/history.txt --history-size=100000 --cycle --info=inline-right --ellipsis=… --separator=─ --pointer=󰅂 --no-separator --marker=﹢ --prompt="$ " --color='spinner:#8faa80:bold,fg:#c7c7c7,pointer:#ff6961:bold,preview-label:#504945:bold,hl+:#dbbc5f:bold:reverse,label:#504945:reverse:bold,bg+:#32302f,fg+:#a0a0a0:bold,info:#8faa80,query:#c7c7c7:bold,preview-bg:#070707,separator:#504945,disabled:#968c81:regular,border:#504945,prompt:#83a598,bg:#1a1a1a,hl:#a9d5c4:bold:reverse,gutter:#1a1a1a,marker:#d3869b:bold,preview-fg:#c7c7c7,scrollbar:#504945,header:#968c81'

Is the problem reproducible with mini.sh?

  • My issue is reproducible with mini.sh
  • My issue IS NOT reproducible with mini.sh
  • I have not tested with mini.sh (not relevant, requires LSP, Windows, etc)

Fzf-lua configuration

require('fzf-lua').setup({
})

Describe the bug / steps to reproduce

Steps

  • Open a terminal buffer, e.g., run the command :term echo hi
  • Open a file in another buffer, e.g., :e README.md
  • Execute :FzfLua buffers
  • Select the terminal buffer
  • Once you have focus on the buffer, press any key, e.g., j

Actual

The terminal buffer automatically closes and is deleted.

Expected

The terminal buffer does not close.

Demo

fzf-lua-buffer-term-issue.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions