Skip to content

fzf randomly breaks on Ctrl-Z #4514

@LunarLambda

Description

@LunarLambda

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.65.2 (416aff8)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

https://asciinema.org/a/hYkNegDqGD8vq8rYzEXmnUtUd bash (no config)
https://asciinema.org/a/n0ajyrADJIR01fcxN6XolMdX8 zsh (no config)

I was messing with a --preview command that potentially suspends fzf to take over the terminal and display a dialogue, then foregrounds fzf again. This works, except I can't find a way to force fzf to redraw after being continued. Then while testing fzf's redraw behaviour, I found that suspending fzf just doesn't work in general. Sometimes Ctrl-Z followed by fg works 1-4 times before breaking, but it's extremely inconsistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions