mirror of https://github.com/Icinga/icinga2.git
parent
a02d7d7502
commit
aaa4878017
|
@ -271,10 +271,12 @@ incomplete:
|
|||
if (commandOnce.IsEmpty()) {
|
||||
add_history(cline);
|
||||
|
||||
if (cline[0] != '\0') {
|
||||
historyfp.open(historyPath.CStr(), std::fstream::out | std::fstream::app);
|
||||
historyfp << cline << "\n";
|
||||
historyfp.close();
|
||||
}
|
||||
}
|
||||
|
||||
line = cline;
|
||||
|
||||
|
|
Loading…
Reference in New Issue