Let repaint-mode act like a repaint if no fish_mode_prompt exists

Otherwise I'm pretty sure we'd get complaints from people who use a
mode-indicator elsewhere in their prompts.
This commit is contained in:
Fabian Homborg
2019-04-01 16:04:14 +02:00
parent bc958712e4
commit 99dd6d7394
2 changed files with 10 additions and 6 deletions

View File

@@ -138,7 +138,7 @@ The following special input functions are available:
- ``repaint`` reexecutes the prompt functions and redraws the prompt. Multiple successive repaints are coalesced.
- ``repaint-mode`` reexecutes the fish_mode_prompt function and redraws the prompt. This is useful for vi-mode.
- ``repaint-mode`` reexecutes the fish_mode_prompt function and redraws the prompt. This is useful for vi-mode. If no fish_mode_prompt exists, it acts like a normal repaint.
- ``suppress-autosuggestion``, remove the current autosuggestion