Skip to content

[BUG] zsh crashes when completing ffmpeg -i with p10k as the theme #176

@Aloxaf

Description

@Aloxaf

Describe the bug

zsh crashes when completing ffmpeg -i with p10k as the theme

The code that causes the bug:

COLUMNS=500 _ftb__main_complete "$@"

https://github.com/romkatv/powerlevel10k/blob/7b0698debf56c80f4e805164537c6401cb88ab2e/internal/p10k.zsh#L3208-L3211

https://github.com/zsh-users/zsh/blob/ce0660b7ba283e3208db28a8763796816a587259/Completion/Unix/Command/_ffmpeg#L109

https://github.com/zsh-users/zsh/blob/ce0660b7ba283e3208db28a8763796816a587259/Completion/Base/Utility/_call_program#L32

  • Remove COLUMNS=500 can fix this bug
  • Set POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=false can fix this bug
  • Replace eval $clocale with exec can fix this bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingzshZsh bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions