Fix history padding

This commit is contained in:
savalet
2025-05-18 23:32:09 +02:00
parent 9ddf8aaea3
commit c3d70d3e08

View File

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