mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
parent
52f83ca7e6
commit
26821d1a79
@ -268,14 +268,12 @@ 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…
x
Reference in New Issue
Block a user