mirror of https://github.com/Icinga/icinga2.git
parent
a02d7d7502
commit
aaa4878017
|
@ -271,9 +271,11 @@ incomplete:
|
|||
if (commandOnce.IsEmpty()) {
|
||||
add_history(cline);
|
||||
|
||||
historyfp.open(historyPath.CStr(), std::fstream::out | std::fstream::app);
|
||||
historyfp << cline << "\n";
|
||||
historyfp.close();
|
||||
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