Changeset 15064 for trunk/FACT++/src


Ignore:
Timestamp:
03/13/13 16:35:20 (12 years ago)
Author:
tbretz
Message:
Do not store entries in the history which were the last entry (StaticPrompt)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Readline.cc

    r14984 r15064  
    13121312    const string str(buf);
    13131313    if (Tools::Trim(str)!=".q")
    1314         add_history(buf);
     1314        if (history_search_pos(str.c_str(), -1, history_length-1)!=history_length-1)
     1315            add_history(buf);
     1316
    13151317    free(buf);
    13161318
Note: See TracChangeset for help on using the changeset viewer.