mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
fish_indent: indent "case" with the same level as "swith"
This commit is contained in:
parent
74f06d550a
commit
bdfc62184d
1 changed files with 5 additions and 0 deletions
|
@ -125,6 +125,11 @@ static int indent( string_buffer_t *out, wchar_t *in, int flags )
|
||||||
{
|
{
|
||||||
indent--;
|
indent--;
|
||||||
}
|
}
|
||||||
|
/* case should have the same indent level as switch*/
|
||||||
|
else if( wcscmp( unesc, L"case" ) == 0 )
|
||||||
|
{
|
||||||
|
indent--;
|
||||||
|
}
|
||||||
else if( wcscmp( unesc, L"end" ) == 0 )
|
else if( wcscmp( unesc, L"end" ) == 0 )
|
||||||
{
|
{
|
||||||
indent--;
|
indent--;
|
||||||
|
|
Loading…
Reference in a new issue