Changeset 87ab6e5


Ignore:
Timestamp:
Jun 22, 2011, 3:07:54 AM (13 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Children:
7086a20
Parents:
84a071f
Message:
history: Remove unused repeats flag

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • global.c

    raa69c1e r87ab6e5  
    6565  owl_history_init(&(g->msghist));
    6666  owl_history_init(&(g->cmdhist));
    67   owl_history_set_norepeats(&(g->cmdhist));
    6867  g->nextmsgid=0;
    6968
  • history.c

    rd4927a7 r87ab6e5  
    77  h->touched=0;                 /* whether we've gone into history */
    88  h->partial=0;                 /* is the 0th element is partially composed? */
    9   h->repeats=1;                 /* by default we'll allow repeat entries */
    10 }
    11 
    12 void owl_history_set_norepeats(owl_history *h)
    13 {
    14   h->repeats=0;
    159}
    1610
     
    5751  }
    5852
    59   /* if repeats are disallowed, check if the line is the same as the last */
     53  /* check if the line is the same as the last */
    6054  if (owl_list_get_size(&(h->hist))>0) {
    6155    if (!strcmp(line, owl_list_get_element(&(h->hist), 0))) return;
  • owl.h

    raa69c1e r87ab6e5  
    459459  int touched;
    460460  int partial;
    461   int repeats;
    462461} owl_history;
    463462
Note: See TracChangeset for help on using the changeset viewer.