mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 07:42:11 +08:00

If we switch the bind mode, we add a "force-repaint" there just to redraw the mode indicator. That's quite wasteful and annoying, considering that sometimes the prompt can take half a second. So we add a "repaint-mode" function that just reexecutes the mode-prompt and uses the cached values for the others. Fixes #5783.