Repository navigation
Closed
Labels
neovimNeovim
Description
Checklist
- I have read through the manual page (
man fzf) - I have searched through the existing issues
- For bug reports, I have checked if the bug is reproducible in the latest version of fzf
Output of fzf --version
0.74.5 (c0a193e)
OS
- Linux
- macOS
- Windows
Shell
- bash
- zsh
- fish
- nushell
- PowerShell
Problem / Steps to reproduce
- Open vim
- Press
Space+o - fzf correctly shown
- Press
Escape :set title:set titlelen=2048Space+o
Now a 2 lines at the bottom appear containing:
C-O Show Enter Open C-X HSplit C-V VSplit C-T Tab' '--bind' 'ctrl-o:execute-silent:{ printf '\''%s'\'' {} | tr '\''\n'\'' '\''\1'\''; echo; } > '\''/tmp/nvim.timoses/nzk7Uq/2'\''' '--scheme' 'path' '-m' '--prompt' '~/.c/n/l/plugins/' '--preview' '/usr/bin/bash '\''/home/timoses/.local/share/nvim/lazy/fzf.vim/bin/preview.sh'\'' {}' '--bind' 'ctrl-/:toggle-preview' --expect=ctrl-v,ctrl-x,alt-enter,ctrl-t --no-height --no-tmux > /tmp/nvim.timoses/nzk7Uq) - 35,22-20 All
Screenshot:
If using tabs in nvim, it will also show weird behaviour with tab headers in the tab heading line becoming invisible.
How did you run into this?
Running in Alacritty -> Tmux -> nvim
I have disabled all other plugins.
lazy.nvim config:
return {
'junegunn/fzf.vim',
dependencies = {
'junegunn/fzf',
--?init = 'fzf#install()'
},
--build = 'fzf#install()',
build = function()
vim.fn['fzf#install']()
end,
keys = {
{ "<leader>o", "<cmd>Files<cr>", desc = "FZF.vim" },
{ "<leader>g", "<cmd>Rg<cr>", desc = "FZF.vim Grep" },
{ "<leader>to", "<cmd>tabnew +Files<cr>", desc = "FZF.vim in new tab" },
{ "<leader>tg", "<cmd>tabnew +Rg<cr>", desc = "FZF.vim Grep in new tab" },
{ "<leader><leader>", "<cmd>Buffers<cr>", desc = "FZF.vim Buffers" },
}
}
Reacted by Junegunn Choi
Metadata
Metadata
Assignees
Labels
neovimNeovim
Activity
junegunn commentedon Oct 21, 2026
Thanks for the report. I could reproduce it on Neovim 0.12.5 in tmux 3.8.
Cause
term://{cwd}//{pid}:{command}, so the buffer name contains the ESC bytes.set title, Neovim writes the buffer name into the title escape sequence.^[.(dir)part (the buffer name up to the last/) is not converted. The raw ESC ends the title sequence early, and the rest is printed on the screen.titlelen, the ESC bytes in fzf.vim commands are usually cut off. Withtitlelen=2048, they are not.Fix
903a4da works around it in fzf. When
'title'is set and the command contains control characters, fzf runs the command from a temporary script, so the buffer name does not contain them.The root cause is in Neovim. It can be reproduced without fzf:
/tmp/foo) - Nvimis printed over the command line, even with the defaulttitlelen. Vim is not affected because its terminal buffer name does not include the command.Avoid control characters in Neovim terminal buffer name
Add CHANGELOG entry for #4941