mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
fish_indent: don't indent commands after a pipe
commands after a pipe tend to be at the same line of previous command. So don't indent them.
This commit is contained in:
parent
46986ad4c2
commit
74f06d550a
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ static int indent( string_buffer_t *out, wchar_t *in, int flags )
|
|||
}
|
||||
|
||||
|
||||
if( do_indent && flags)
|
||||
if( do_indent && flags && prev_type != TOK_PIPE )
|
||||
{
|
||||
insert_tabs( out, indent );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue