mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
fish_indent: indent "case" with the same level as "swith"
This commit is contained in:
parent
74f06d550a
commit
bdfc62184d
@ -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…
x
Reference in New Issue
Block a user