mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43: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--;
|
||||
}
|
||||
/* case should have the same indent level as switch*/
|
||||
else if( wcscmp( unesc, L"case" ) == 0 )
|
||||
{
|
||||
indent--;
|
||||
}
|
||||
else if( wcscmp( unesc, L"end" ) == 0 )
|
||||
{
|
||||
indent--;
|
||||
|
|
Loading…
Reference in a new issue