FACT++
1.0
|
void Readline::AddToHistory | ( | const std::string & | str, |
int | skip = 2 |
||
) |
Adds the given string to the history buffer of readline's history by calling add_history.
str | A reference to a string which should be added to readline's history. |
skip | If skip is 1 and str matches the last added entry in the history, the entry is skipped. If skip==2, all entries matching str are removed from the history before the new entry is added as last one. <skip==2 is the default> |
Definition at line 562 of file Readline.cc.
References fLastLine, Memory::free(), and str.
Referenced by GetName(), and ProcessLine().