mirror of https://github.com/Icinga/icinga2.git
parent
52f83ca7e6
commit
26821d1a79
|
@ -268,15 +268,13 @@ incomplete:
|
|||
if (!cline)
|
||||
break;
|
||||
|
||||
if (commandOnce.IsEmpty()) {
|
||||
if (commandOnce.IsEmpty() && cline[0] != '\0') {
|
||||
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