diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index 4b51c4b2..da3ee6b4 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc @@ -140,20 +140,27 @@ void FbRun::run(const std::string &command) { } } - // now m_current_history_item points at the duplicate, or - // at m_history.size() if no duplicate fstream inoutfile(m_history_file.c_str(), ios::in|ios::out); if (inoutfile) { - int i = 0; - // read past history items before current - for (string line; !inoutfile.eof() && i < m_current_history_item; i++) - getline(inoutfile, line); - // write the history items that come after current - for (i++; i < m_history.size(); i++) - inoutfile<