Commands which failed expansions are to be stored to history, too.
This commit is contained in:
parent
f098e072be
commit
971b2310ae
1 changed files with 2 additions and 0 deletions
|
@ -103,6 +103,8 @@ got_line(char *cmd_buffer)
|
||||||
input_hidden = 0;
|
input_hidden = 0;
|
||||||
free(cmd);
|
free(cmd);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
add_history(cmd_buffer);
|
||||||
}
|
}
|
||||||
free(cmd_buffer);
|
free(cmd_buffer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue