mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 07:35:43 +08:00

This can easily lead to an infinite loop, if a variable handler triggers a repaint and the variable is set in the prompt, e.g. some of the git variables. A simple way to reproduce: function fish_mode_prompt commandline -f repaint end Repainting executes the mode prompt, which triggers a repaint, which triggers the mode prompt, .... So we just set a flag and check it. Fixes #7324.