Changeset 83a079a for history.c


Ignore:
Timestamp:
Jun 25, 2011, 3:24:36 AM (13 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
ad37b39
Parents:
9923144
git-author:
Anders Kaseorg <andersk@mit.edu> (06/22/11 02:54:44)
git-committer:
Anders Kaseorg <andersk@mit.edu> (06/25/11 03:24:36)
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

    r9923144 r83a079a  
    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.