fix(fish): escape all prompt sequences

This commit is contained in:
Jan De Dobbeleer 2022-04-26 19:56:27 +02:00 committed by Jan De Dobbeleer
parent cae456db7b
commit a2f5016e77

View file

@ -223,6 +223,11 @@ func (a *Ansi) initEscapeSequences(shellName string) {
{text: `\r`, replacement: `\\r`},
{text: `\t`, replacement: `\\t`},
{text: `\v`, replacement: `\\v`},
{text: `\c`, replacement: `\\c`},
{text: `\x`, replacement: `\\x`},
{text: `\X`, replacement: `\\X`},
{text: `\0`, replacement: `\\0`},
{text: `\U`, replacement: `\\U`},
}
default:
a.reservedSequences = []sequenceReplacement{