Changeset 35849fe


Ignore:
Timestamp:
Jun 25, 2011, 2:22:59 AM (6 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Children:
7c80ea42
Parents:
57a66fe
git-author:
Anders Kaseorg <andersk@mit.edu> (06/25/11 02:00:31)
git-committer:
Anders Kaseorg <andersk@mit.edu> (06/25/11 02:22:59)
Message:
history: Remove partial entries in owl_history_reset

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • history.c

    r57a66fe r35849fe  
    4343  size=owl_list_get_size(&(h->hist));
    4444
    45   /* if partial is set, remove the first entry first */
    46   if (h->partial) {
    47     g_free(owl_list_get_element(&(h->hist), 0));
    48     owl_list_remove_element(&(h->hist), 0);
    49   }
    50 
    5145  owl_history_reset(h);
    5246
     
    7569{
    7670  if (!h) return;
     71
     72  /* if partial is set, remove the first entry first */
     73  if (h->partial) {
     74    g_free(owl_list_get_element(&(h->hist), 0));
     75    owl_list_remove_element(&(h->hist), 0);
     76    h->partial = 0;
     77  }
     78
    7779  h->cur=0;
    78   h->partial=0;
    7980}
    8081
Note: See TracChangeset for help on using the changeset viewer.