mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
52f83ca7e6
commit
26821d1a79
@ -268,14 +268,12 @@ 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();
|
||||
}
|
||||
historyfp.open(historyPath.CStr(), std::fstream::out | std::fstream::app);
|
||||
historyfp << cline << "\n";
|
||||
historyfp.close();
|
||||
}
|
||||
|
||||
line = cline;
|
||||
|
Loading…
x
Reference in New Issue
Block a user