Skip to content

fzf --info=inline-right doesn't render correctly with custom --info-command #4479

@omr-maker

Description

@omr-maker

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.1 (e5cd7f0)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

When I apply the option --info inline-right and the option --info-command 'echo "$FZF_POS/$FZF_MATCH_COUNT"' the last two characters of the info disappear as you can see in the images below

Image Image

however, when I used ANSI escapes it worked without any issues, and I think this might be a useful information

fzf --info inline-right --info-command 'echo "\x1b[33;1m$FZF_POS\x1b[m/$FZF_MATCH_COUNT"':
Image

I disabled all options before testing this

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions