mirror of
https://github.com/Savapitech/42sh.git
synced 2026-03-18 21:50:35 +01:00
Fix history padding
This commit is contained in:
@@ -16,10 +16,10 @@ int builtins_history(ef_t *ef, char **args __attribute__((unused)))
|
||||
|
||||
for (int i = 0; i < cmd_history->sz; i++){
|
||||
if (cmd_history[i].arg) {
|
||||
printf("%d %s %s\n", i + 1, cmd_history[i].command,
|
||||
printf("%d\t%s %s\n", i + 1, cmd_history[i].command,
|
||||
cmd_history[i].arg);
|
||||
} else
|
||||
printf("%d %s\n", i + 1, cmd_history[i].command);
|
||||
printf("%d\t%s\n", i + 1, cmd_history[i].command);
|
||||
}
|
||||
return RETURN_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user