Adding entered command to history

This commit is contained in:
jpk 2017-11-19 19:17:07 +01:00
parent 61b2327d3c
commit e57c3a3ed6
1 changed files with 2 additions and 1 deletions

View File

@ -168,6 +168,8 @@ void cmd_loop() {
do {
cmd = readline("> ");
add_history(cmd);
if (cmd == NULL)
break;
@ -206,7 +208,6 @@ void cmd_loop() {
}
parse_commands(argc, argv);
add_history(cmd_start);
free(cmd);