Changeset 57a66fe for history.c


Ignore:
Timestamp:
Jun 25, 2011, 2:12:43 AM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Children:
35849fe
Parents:
7086a20
git-author:
Anders Kaseorg <andersk@mit.edu> (06/22/11 02:54:44)
git-committer:
Anders Kaseorg <andersk@mit.edu> (06/25/11 02:12:43)
Message:
history: Make owl_history_store also reset

It doesn’t make sense to run owl_history_store without
owl_history_reset (except in one case where we know the current
position is already the beginning and we’re about to
owl_history_set_partial), so let’s merge these functions.

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

Legend:

Unmodified
Added
Removed
  • history.c

    r7086a20 r57a66fe  
    4949  }
    5050
     51  owl_history_reset(h);
     52
    5153  /* check if the line is the same as the last */
    5254  if (owl_list_get_size(&(h->hist))>0) {
Note: See TracChangeset for help on using the changeset viewer.