mirror of https://github.com/Icinga/icinga2.git
parent
52f83ca7e6
commit
26821d1a79
|
@ -268,15 +268,13 @@ incomplete:
|
||||||
if (!cline)
|
if (!cline)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (commandOnce.IsEmpty()) {
|
if (commandOnce.IsEmpty() && cline[0] != '\0') {
|
||||||
add_history(cline);
|
add_history(cline);
|
||||||
|
|
||||||
if (cline[0] != '\0') {
|
|
||||||
historyfp.open(historyPath.CStr(), std::fstream::out | std::fstream::app);
|
historyfp.open(historyPath.CStr(), std::fstream::out | std::fstream::app);
|
||||||
historyfp << cline << "\n";
|
historyfp << cline << "\n";
|
||||||
historyfp.close();
|
historyfp.close();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
line = cline;
|
line = cline;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue