sh: remove duplicate code
This commit is contained in:
parent
fef7dd5867
commit
4aa979bd87
@ -148,16 +148,10 @@ void command_concat_char(command* cmd, char c)
|
||||
}
|
||||
else if (c == '\n')
|
||||
{
|
||||
if (cmd->size == 0)
|
||||
{
|
||||
putchar(c);
|
||||
show_prompt();
|
||||
}
|
||||
putchar(c);
|
||||
if (cmd->size == 0) show_prompt();
|
||||
else
|
||||
{
|
||||
putchar(c);
|
||||
command_execute(cmd);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user