fish_indent: indent "case" with the same level as "swith"

This commit is contained in:
Grissiom 2010-12-02 23:42:48 +08:00
parent 74f06d550a
commit bdfc62184d

View file

@ -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--;